--- ECHO_content/ECHO_collection.py 2004/05/28 15:01:43 1.95 +++ ECHO_content/ECHO_collection.py 2004/06/04 10:04:16 1.96 @@ -89,10 +89,10 @@ def content_html(self,type): #if templates: # return templates[0][1]() - try: + if hasattr(self,type+"_template") obj=getattr(self,type+"_template") return obj() - except: + else: pt=PageTemplateFile('Products/ECHO_content/zpt/ECHO_%s_template_standard.zpt'%type).__of__(self) pt.content_type="text/html" return pt()