Diff for /ECHO_content/ECHO_helpers.py between versions 1.93 and 1.96

version 1.93, 2008/11/19 14:22:42 version 1.96, 2008/12/17 12:05: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 87  class ECHO_basis: Line 91  class ECHO_basis:
     # Managment for the PID      # Managment for the PID
     def setPID(self,pid):      def setPID(self,pid):
         """set the pid"""          """set the pid"""
           logging.debug(self.getID()+" PID set to "+pid)
         self.pid=pid          self.pid=pid
         return True          return True
                   
     def getPID(self):      def getPID(self):
         """get the pid"""          """get the pid"""
         return getattr(self,'pid',None)  
                   
           pid =getattr(self,'pid',None)
   
           if pid == self.getParentPID():
               return None
           else:
               return pid
   
           
       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"""

Removed from v.1.93  
changed lines
  Added in v.1.96


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