--- ECHO_content/ECHO_collection.py 2004/05/28 09:34:48 1.92 +++ ECHO_content/ECHO_collection.py 2004/05/28 10:43:05 1.93 @@ -2151,6 +2151,53 @@ def manage_addECHO_rootForm(self): """Nothing yet""" pt=PageTemplateFile('Products/ECHO_content/zpt/AddECHO_root.zpt').__of__(self) return pt() + +class ECHO_copyrightType(Folder): + """copyright typ""" + + meta_type="ECHO_copyrightType" + + def __init__(self,id,title,label): + """init""" + self.id=id + self.title=title + self.label=label + + manage_options = Folder.manage_options+( + {'label':'Main Config','action':'ECHO_copyrightType_config_mainForm'}, + ) + + def ECHO_copyrightType_config_mainForm(self): + """change form""" + pt=PageTemplateFile('Products/ECHO_content/zpt/ChangeECHO_copyrightType').__of__(self) + pt.content_type="text/html" + return pt() + + def ECHO_copyrightType_config_main(self,title,label,RESPONSE=None): + """change""" + self.title=title + self.label=label + + if RESPONSE is not None: + RESPONSE.redirect('manage_main') + +def manage_addECHO_copyrightTypeForm(self): + """Form for adding a ressource""" + pt=PageTemplateFile('Products/ECHO_content/zpt/AddECHO_copyrightTypeForm.zpt').__of__(self) + return pt() + + +def manage_addECHO_copyrightType(self,id,title,label,RESPONSE=None): + """addaresource""" + + newObj=ECHO_copyrightType(id,title,label) + + self._setObject(id,newObj) + + if RESPONSE is not None: + RESPONSE.redirect('manage_main') + + class ECHO_partner(Image,Persistent): """ECHO Partner"""