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