--- MPIWGWeb/MPIWGStaff.py 2007/04/18 10:03:13 1.10.2.33 +++ MPIWGWeb/MPIWGStaff.py 2007/04/26 17:02:09 1.10.2.35 @@ -86,7 +86,7 @@ class MPIWGStaff(CatalogAware,ZSQLExtend return self.key.lower() #fuer alt faelle ohne key - return (self.firstName+'_'+self.lastName).lower() + return (self.firstName+'_'+self.lastName).lower().replace(' ','') def getConnectionObj(self):#ueberschreibe connection id methode @@ -95,7 +95,7 @@ class MPIWGStaff(CatalogAware,ZSQLExtend def isPublished(self): """gib publications status aus der datenbank aus""" key=self.getKey() - query="select count(publish_the_data) from personal_www where key='%s' and publish_the_data='yes'"%key + query="select count(publish_the_data) from personal_www where lower(key)='%s' and publish_the_data='yes'"%key res = self.ZSQLQuery(query) @@ -479,7 +479,7 @@ class MPIWGStaff(CatalogAware,ZSQLExtend if mode=="year": return "year DESC" else: - return "mode" + return mode def integer(self,value): try: