comparison MPIWGStaff.py @ 28:dd765003647b

compatibility band-aid.
author casties
date Tue, 23 Apr 2013 10:25:21 +0200
parents ee3eb9a6665a
children 9b38ba45773b
comparison
equal deleted inserted replaced
27:9a75eb1b31b3 28:dd765003647b
30 import re 30 import re
31 from OFS.Cache import Cacheable 31 from OFS.Cache import Cacheable
32 import urllib2 32 import urllib2
33 import transaction 33 import transaction
34 34
35 from SrvTxtUtils import getHttpData, getInt, unicodify, utf8ify 35 from SrvTxtUtils import getHttpData, getAt, getInt, unicodify, utf8ify
36 import bibliography 36 import bibliography
37 37
38 from MPIWGHelper import * 38 from MPIWGHelper import *
39 #ersetzt logging 39 #ersetzt logging
40 def logger(txt,method,txt2): 40 def logger(txt,method,txt2):
104 self.id=id 104 self.id=id
105 self.title=key 105 self.title=key
106 self.lastName=lastName 106 self.lastName=lastName
107 self.firstName=firstName 107 self.firstName=firstName
108 self.key=key 108 self.key=key
109
110 # compat TODO: remove this
111 def getat(self, array, idx, default=None):
112 """returns always an int (0 in case of problems)"""
113 return getAt(array, idx, default)
114
115 # compat TODO: remove this
116 def decode(self, s):
117 """TODO: remove this"""
118 return unicodify(s)
109 119
110 def redirect(self,RESPONSE,url): 120 def redirect(self,RESPONSE,url):
111 """mache ein redirect mit einem angehaengten time stamp um ein reload zu erzwingen""" 121 """mache ein redirect mit einem angehaengten time stamp um ein reload zu erzwingen"""
112 122
113 timeStamp=time.time() 123 timeStamp=time.time()