--- MPIWGWeb/MPIWGStaff.py 2005/10/13 18:00:36 1.10.2.6 +++ MPIWGWeb/MPIWGStaff.py 2005/10/14 15:21:22 1.10.2.7 @@ -34,6 +34,22 @@ class MPIWGStaff(CatalogAware,ZSQLExtend default_catalog='MembersCatalog' departmentList=departmentList + def getConnectionObj(self):#ueberschreibe connection id methode + + return getattr(self.de,self.de.connection_id) + + def isPublished(self): + """gib publications status aus der datenbank aus""" + username=self.getId() + query="select count(publish_the_data) from personal_www where username='%s' and publish_the_data='yes'"%username + + res = self.ZSQLQuery(query) + + if res and res[0].count>0: + return True + else: + return False + def createNewDBEntry(self,publish_the_data,id,name,vorname,username,title,e_mail,e_mail_p,date_from,date_to,abteilung,heimat_inst,funded_by="",e_mail2="",txt="",txt_p="no"): """lege person in der datenbank an""" msg=""