changeset 28:dd765003647b

compatibility band-aid.
author casties
date Tue, 23 Apr 2013 10:25:21 +0200
parents 9a75eb1b31b3
children 224023958871
files MPIWGStaff.py
diffstat 1 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MPIWGStaff.py	Mon Apr 22 21:01:00 2013 +0200
+++ b/MPIWGStaff.py	Tue Apr 23 10:25:21 2013 +0200
@@ -32,7 +32,7 @@
 import urllib2
 import transaction
 
-from SrvTxtUtils import getHttpData, getInt, unicodify, utf8ify
+from SrvTxtUtils import getHttpData, getAt, getInt, unicodify, utf8ify
 import bibliography
 
 from MPIWGHelper import *
@@ -107,6 +107,16 @@
         self.firstName=firstName
         self.key=key
     
+    # compat TODO: remove this
+    def getat(self, array, idx, default=None):
+        """returns always an int (0 in case of problems)"""
+        return getAt(array, idx, default)
+    
+    # compat TODO: remove this
+    def decode(self, s):
+        """TODO: remove this"""
+        return unicodify(s)
+    
     def redirect(self,RESPONSE,url):
         """mache ein redirect mit einem angehaengten time stamp um ein reload zu erzwingen"""