--- ECHO_content/ECHO_helpers.py 2008/09/08 19:36:52 1.92 +++ ECHO_content/ECHO_helpers.py 2008/11/19 14:22:42 1.93 @@ -84,6 +84,16 @@ class ECHO_basis: management_page_charset="utf-8" isVisible = True + # Managment for the PID + def setPID(self,pid): + """set the pid""" + self.pid=pid + return True + + def getPID(self): + """get the pid""" + return getattr(self,'pid',None) + def unicodify(self, s): """return unicode object for string (utf-8 or latin1) or unicode object s""" @@ -207,6 +217,12 @@ class ECHO_basis: return self.isVisible return True + def getDescription(self): + """get content of description field""" + + + return self.unicodify(getattr(self,'description','')); + def getTitle(self): """title""" if hasattr(self,'getLanguage'):