Diff for /ECHO_content/ECHO_helpers.py between versions 1.92 and 1.94

version 1.92, 2008/09/08 19:36:52 version 1.94, 2008/12/04 21:27:00
Line 27  def logger(txt,method,txt2): Line 27  def logger(txt,method,txt2):
   
 displayTypes = ['ZSQLExtendFolder','ZSQLBibliography','ECHO_group','ECHO_collection','ECHO_resource','ECHO_link','ECHO_sqlElement','ECHO_pageTemplate','ECHO_externalLink','ImageCollectionIFrame','VLP_resource','VLP_essay','ECHO_ZCatalogElement','ImageCollection','versionedFileFolder','extVersionedFileFolder','ECHO_movie']  displayTypes = ['ZSQLExtendFolder','ZSQLBibliography','ECHO_group','ECHO_collection','ECHO_resource','ECHO_link','ECHO_sqlElement','ECHO_pageTemplate','ECHO_externalLink','ImageCollectionIFrame','VLP_resource','VLP_essay','ECHO_ZCatalogElement','ImageCollection','versionedFileFolder','extVersionedFileFolder','ECHO_movie']
   
   def normalizeCt(str):
           """normalizes content_type"""
           #str= str.replace(" ","_")
           return str.replace("-"," ").lower()
   
 #decode and compress for xmlrpc communication with OSAS_server  #decode and compress for xmlrpc communication with OSAS_server
   
Line 84  class ECHO_basis: Line 88  class ECHO_basis:
     management_page_charset="utf-8"      management_page_charset="utf-8"
     isVisible = True      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 getParentPID(self):
           """get the PID of the parent"""
           parent = self.aq_parent
           
           pidF = getattr(parent,'getPID',None)
           
           if pidF is None:
               return None
               
           else:
               return pidF()
   
     def unicodify(self, s):      def unicodify(self, s):
         """return unicode object for string (utf-8 or latin1) or unicode object s"""          """return unicode object for string (utf-8 or latin1) or unicode object s"""
Line 207  class ECHO_basis: Line 232  class ECHO_basis:
             return self.isVisible              return self.isVisible
         return True          return True
           
       def getDescription(self):
           """get content of description field"""
           
         
           return self.unicodify(getattr(self,'description',''));
       
     def getTitle(self):      def getTitle(self):
         """title"""          """title"""
         if hasattr(self,'getLanguage'):          if hasattr(self,'getLanguage'):

Removed from v.1.92  
changed lines
  Added in v.1.94


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>