--- MPIWGWeb/MPIWGProjects.py 2005/12/22 21:09:00 1.47.2.44 +++ MPIWGWeb/MPIWGProjects.py 2005/12/22 21:10:14 1.47.2.45 @@ -853,8 +853,8 @@ class MPIWGRoot(ZSQLExtendFolder): done= obj.updateDBEntry(DBid=id,publish_the_data=publish_the_data, date_from=date_from, date_to=date_to,stay_at_mpiwg=stay_at_mpiwg,position=position) - if not done and (publish_the_data=='yes'): - + if not done and (publish_the_data=='yes'): + ret=obj.createNewDBEntry(publish_the_data,id,name, vorname,username,title,position,e_mail, e_mail_p,date_from,date_to, @@ -862,9 +862,9 @@ class MPIWGRoot(ZSQLExtendFolder): e_mail2,txt,txt_p) if not ret[0]: - RESPONSE.write("

Error: %s

\n"%repr(ret[1])) - else: - RESPONSE.write("

New: %s

\n"%repr(ret[1])) + RESPONSE.write("

Error: %s

\n"%repr(ret[1])) + else: + RESPONSE.write("

New: %s

\n"%repr(ret[1])) #TODO: reindexCatlogs and updatePublications wieder einbaue #self.reindexCatalogs(RESPONSE) @@ -872,7 +872,7 @@ class MPIWGRoot(ZSQLExtendFolder): #self.updatePublicationDB() self.ZSQLResetConnection() - RESPONSE.write("

Done

") + RESPONSE.write("

Done

") return True