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