# HG changeset patch # User casties # Date 1371217793 -7200 # Node ID 71c2d76f09b53e1a2b066dc8eaba51fcb3919cc5 # Parent 3ea224968f95bbc3a45113d0e4323bb705875e38 fix editProfile. diff -r 3ea224968f95 -r 71c2d76f09b5 MPIWGStaff.py --- a/MPIWGStaff.py Fri Jun 14 15:29:57 2013 +0200 +++ b/MPIWGStaff.py Fri Jun 14 15:49:53 2013 +0200 @@ -445,11 +445,9 @@ if kupu: start = kupu.find("
") end = kupu.find("") - - newcontent = kupu[start + 6:end] - query = "UPDATE personal_www SET profile=%s WHERE key='%s'" - self.executeZSQL(query % (self.ZSQLQuote(newcontent), self.content.key)) - logging.error("PROFILE:" + query % (self.ZSQLQuote(newcontent), self.content.key)) + newcontent = kupu[start+6:end] + query = "UPDATE personal_www SET profile=%s WHERE key=%s" + self.executeZSQL(query, [newcontent, self.content.key]) if preview: pass diff -r 3ea224968f95 -r 71c2d76f09b5 zpt/staff/edit_profile.zpt --- a/zpt/staff/edit_profile.zpt Fri Jun 14 15:29:57 2013 +0200 +++ b/zpt/staff/edit_profile.zpt Fri Jun 14 15:49:53 2013 +0200 @@ -5,12 +5,8 @@