comparison MPIWGStaff.py @ 187:71c2d76f09b5

fix editProfile.
author casties
date Fri, 14 Jun 2013 15:49:53 +0200
parents 3ea224968f95
children 16d55695f1c8
comparison
equal deleted inserted replaced
186:3ea224968f95 187:71c2d76f09b5
443 preview = REQUEST.form.get('preview', None); 443 preview = REQUEST.form.get('preview', None);
444 444
445 if kupu: 445 if kupu:
446 start = kupu.find("<body>") 446 start = kupu.find("<body>")
447 end = kupu.find("</body>") 447 end = kupu.find("</body>")
448 448 newcontent = kupu[start+6:end]
449 newcontent = kupu[start + 6:end] 449 query = "UPDATE personal_www SET profile=%s WHERE key=%s"
450 query = "UPDATE personal_www SET profile=%s WHERE key='%s'" 450 self.executeZSQL(query, [newcontent, self.content.key])
451 self.executeZSQL(query % (self.ZSQLQuote(newcontent), self.content.key))
452 logging.error("PROFILE:" + query % (self.ZSQLQuote(newcontent), self.content.key))
453 451
454 if preview: 452 if preview:
455 pass 453 pass
456 # TODO: not supported yet 454 # TODO: not supported yet
457 # if RESPONSE: 455 # if RESPONSE: