Diff for /ECHO_content/ECHO_collection.py between versions 1.96 and 1.97

version 1.96, 2004/06/04 10:04:16 version 1.97, 2004/06/05 10:04:33
Line 89  def content_html(self,type): Line 89  def content_html(self,type):
         #if templates:          #if templates:
         #    return templates[0][1]()          #    return templates[0][1]()
   
         if hasattr(self,type+"_template")          if hasattr(self,type+"_template"):
             obj=getattr(self,type+"_template")              obj=getattr(self,type+"_template")
             return obj()              return obj()
         else:          else:
Line 445  class ECHO_resource(Folder,Persistent): Line 445  class ECHO_resource(Folder,Persistent):
   
     def getCopyright(self):      def getCopyright(self):
         """gib link auf copyright notiz aus"""          """gib link auf copyright notiz aus"""
         if hasattr(self,'copyrightType'):          if hasattr(self,'copyrightType') and hasattr(self.copyrightTypes,self.copyrightType):
             obj=getattr(self.copyrightTypes,'copyrightType')              obj=getattr(self.copyrightTypes,self.copyrightType)
         else:          else:
             obj=getattr(self.copyrightTypes,'generic')              obj=getattr(self.copyrightTypes,'generic')
   

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


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