Mercurial > hg > MPIWGWeb
diff MPIWGStaff.py @ 187:71c2d76f09b5
fix editProfile.
author | casties |
---|---|
date | Fri, 14 Jun 2013 15:49:53 +0200 |
parents | 3ea224968f95 |
children | 16d55695f1c8 |
line wrap: on
line diff
--- 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("<body>") end = kupu.find("</body>") - - 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