--- MPIWGWeb/MPIWGStaff.py 2006/04/05 13:03:10 1.10.2.25 +++ MPIWGWeb/MPIWGStaff.py 2006/07/03 14:28:47 1.10.2.27 @@ -89,7 +89,7 @@ class MPIWGStaff(CatalogAware,ZSQLExtend return True,msg - def updateDBEntry(self,publish_the_data,date_from,date_to,DBid=None,stay_at_mpiwg="",position=""): + def updateDBEntry(self,publish_the_data,date_from,date_to,DBid=None,stay_at_mpiwg="",position="",abteilung=""): """zpddatedb""" if not DBid: DBid=self.getDBId() @@ -104,7 +104,7 @@ class MPIWGStaff(CatalogAware,ZSQLExtend self.ZSQLChange(_table="personal_www",_identify="id=%s"%DBid,publish_the_data=publish_the_data, date_from=date_from, - date_to=date_to,stay_at_mpiwg=stay_at_mpiwg,position=position) + date_to=date_to,stay_at_mpiwg=stay_at_mpiwg,position=position,abteilung=abteilung) return True else: return False @@ -309,10 +309,10 @@ class MPIWGStaff(CatalogAware,ZSQLExtend for newEntry in newEntries.keys(): query="INSERT INTO %s "%newEntry keys=['id_main'] - values=["'"+id_main+"'"] + values=["'"+sql_quote(id_main)+"'"] for key in newEntries[newEntry].keys(): keys.append(key) - values.append("'"+newEntries[newEntry][key]+"'") + values.append("'"+sql_quote(newEntries[newEntry][key])+"'") keystring=",".join(keys)