comparison MPIWGRoot.py @ 35:38cbbeaf266b

more work on projects. responsibleScientistsList has new format.
author casties
date Thu, 25 Apr 2013 21:39:57 +0200
parents 01b5265264b6
children bbad6a092861
comparison
equal deleted inserted replaced
34:b8ced08ebea9 35:38cbbeaf266b
26 26
27 from MPIWGHelper import * 27 from MPIWGHelper import *
28 import updatePersonalWWW 28 import updatePersonalWWW
29 from bibliography import * 29 from bibliography import *
30 import MPIWGStaff 30 import MPIWGStaff
31 from SrvTxtUtils import getInt, utf8ify, refreshingImageFileIndexHtml 31 from SrvTxtUtils import getInt, getAt, utf8ify, refreshingImageFileIndexHtml
32 32
33 33
34 def sortWeight(x,y): 34 def sortWeight(x,y):
35 x1=int(getattr(x[1],'weight','0')) 35 x1=int(getattr(x[1],'weight','0'))
36 y1=int(getattr(y[1],'weight','0')) 36 y1=int(getattr(y[1],'weight','0'))
305 305
306 306
307 def isActiveMember(self,key): 307 def isActiveMember(self,key):
308 """tested ob Mitarbeiter key ist aktiv""" 308 """tested ob Mitarbeiter key ist aktiv"""
309 key=utf8ify(key) 309 key=utf8ify(key)
310 ret=self.getat(self.ZSQLInlineSearch(_table='personal_www', 310 ret=getAt(self.ZSQLInlineSearch(_table='personal_www',
311 _op_key='eq',key=key, 311 _op_key='eq',key=key,
312 _op_publish_the_data='eq', 312 _op_publish_the_data='eq',
313 publish_the_data='yes')) 313 publish_the_data='yes'), 0)
314 314
315 logging.info("ACTIVE_MEMBER %s"%ret) 315 logging.info("ACTIVE_MEMBER %s"%ret)
316 if ret: 316 if ret:
317 return True 317 return True
318 else: 318 else: