Mercurial > hg > MPIWGWeb
comparison MPIWGRoot.py @ 41:cacba38c268c
added decode() back to MPIWGRoot, templates using it should be fixed...
author | casties |
---|---|
date | Fri, 26 Apr 2013 21:37:18 +0200 |
parents | fd8e78bbc5ed |
children | e30a4bd074db e718d9a72f19 |
comparison
equal
deleted
inserted
replaced
40:fd8e78bbc5ed | 41:cacba38c268c |
---|---|
306 | 306 |
307 def MPIWGrootURL(self): | 307 def MPIWGrootURL(self): |
308 """returns the URL to the root""" | 308 """returns the URL to the root""" |
309 return self.absolute_url() | 309 return self.absolute_url() |
310 | 310 |
311 | 311 |
312 # TODO: make obsolete | |
313 def decode(self, s): | |
314 """unicodify""" | |
315 return unicodify(s) | |
316 | |
317 # TODO: remove | |
312 def replaceNotEmpty(self,format,field): | 318 def replaceNotEmpty(self,format,field): |
313 """replace not empty""" | 319 """replace not empty""" |
314 if field and (not field.lstrip()==''): | 320 if field and (not field.lstrip()==''): |
315 return format%field | 321 return format%field |
316 #return self.decode(format%field) | 322 #return self.decode(format%field) |
317 else: | 323 else: |
318 return "" | 324 return "" |
319 | 325 |
320 | 326 |
327 # TODO: remove | |
321 def isActiveMember(self,key): | 328 def isActiveMember(self,key): |
322 """tested ob Mitarbeiter key ist aktiv""" | 329 """tested ob Mitarbeiter key ist aktiv""" |
323 key=utf8ify(key) | 330 key=utf8ify(key) |
324 ret=getAt(self.ZSQLInlineSearch(_table='personal_www', | 331 ret=getAt(self.ZSQLInlineSearch(_table='personal_www', |
325 _op_key='eq',key=key, | 332 _op_key='eq',key=key, |
330 if ret: | 337 if ret: |
331 return True | 338 return True |
332 else: | 339 else: |
333 return False | 340 return False |
334 | 341 |
342 # TODO: remove | |
335 def isActual(self,project): | 343 def isActual(self,project): |
336 """checke if project is actual""" | 344 """checke if project is actual""" |
337 actualTime=time.localtime() | 345 actualTime=time.localtime() |
338 | 346 |
339 if hasattr(project,'getObject'): #obj ist aus einer catalogTrefferList | 347 if hasattr(project,'getObject'): #obj ist aus einer catalogTrefferList |