--- MPIWGWeb/Attic/MPIWGRoot.py 2008/06/25 06:41:25 1.1.2.2 +++ MPIWGWeb/Attic/MPIWGRoot.py 2008/08/26 14:00:42 1.1.2.3 @@ -87,6 +87,7 @@ class MPIWGRoot(ZSQLExtendFolder): def decode(self,str): """decoder""" + if not str: return "" if type(str) is StringType: @@ -310,7 +311,7 @@ class MPIWGRoot(ZSQLExtendFolder): def replaceNotEmpty(self,format,field): """replace not empty""" if field and (not field.lstrip()==''): - return format%field + return self.decode(format%field) else: return ""