--- MPIWGWeb/MPIWGStaff.py 2008/12/17 08:02:19 1.10.2.64 +++ MPIWGWeb/MPIWGStaff.py 2009/02/18 15:42:00 1.10.2.65 @@ -99,6 +99,10 @@ class MPIWGStaff(CatalogAware,ZSQLExtend """get db_key utf8""" return utf8ify(self.getKey()) + def setKey(self,key): + """set key""" + self.key=key + def getKey(self): """get database key""" if hasattr(self,'key'): @@ -123,10 +127,8 @@ class MPIWGStaff(CatalogAware,ZSQLExtend res = self.ZSQLQuery(query) if res and res[0].count>0: - return True else: - return False @@ -702,7 +704,7 @@ class MPIWGStaff(CatalogAware,ZSQLExtend pt=PageTemplateFile(os.path.join(package_home(globals()),'zpt','editMainData.zpt')).__of__(self) return pt() else: - self.ZSQLChange(argv,_table="personal_www",_identify="key=%s"%self.getKey(),USE_FORM="yes") + self.ZSQLChange(argv,_table="personal_www",_identify="key=%s"%self.getKeyUTF8(),USE_FORM="yes") if RESPONSE: self.redirect(RESPONSE,"editMainData")