Mercurial > hg > MPIWGWeb
diff MPIWGRoot.py @ 72:5cb46852ac05
reinsert rplaceNotEmpty in root
author | dwinter |
---|---|
date | Sun, 05 May 2013 13:56:07 +0200 |
parents | ad2e970ffd9f |
children | df56982ecb03 |
line wrap: on
line diff
--- a/MPIWGRoot.py Sun May 05 12:36:28 2013 +0200 +++ b/MPIWGRoot.py Sun May 05 13:56:07 2013 +0200 @@ -60,6 +60,16 @@ self.title=title + # TODO: remove + def replaceNotEmpty(self,format,field): + """replace not empty""" + if field and (not field.lstrip()==''): + return format%field + #return self.decode(format%field) + else: + return "" + + def getLang(self): """returns the default language""" return self.lang