# HG changeset patch # User casties # Date 1366705521 -7200 # Node ID dd765003647b3c59ce5a5264955f2e338231bffa # Parent 9a75eb1b31b3ed797f0ee486b91ee34bdb7add49 compatibility band-aid. diff -r 9a75eb1b31b3 -r dd765003647b MPIWGStaff.py --- 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"""