Commit a0fb509e authored by Alexandre Boeglin's avatar Alexandre Boeglin

Give the constructor an alias, instead of redefining it's __name__, for

python2.3 compatibility (Constructor became a function in r11797).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13000 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f8e7093f
......@@ -50,8 +50,6 @@ def manage_addERP5SiteForm(*args, **kw):
kw['getCatalogStorageList'] = getCatalogStorageList
return manage_addERP5SiteFormDtml(*args, **kw)
manage_addERP5SiteForm.__name__ = 'addERP5Site'
# ERP5Site Constructor
def manage_addERP5Site(self,
id,
......@@ -184,7 +182,7 @@ class ERP5Site(FolderMixIn, CMFSite):
of a new ERP5. It should not assist in the functionality at all.
"""
meta_type = 'ERP5 Site'
constructors = (manage_addERP5SiteForm, manage_addERP5Site, )
constructors = (('addERP5Site', manage_addERP5SiteForm), manage_addERP5Site, )
uid = 0
last_id = 0
icon = 'portal.gif'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment