Commit 5e5596df authored by Jean-Paul Smets's avatar Jean-Paul Smets

added getPortalType method. Some day, all parts of ERP5 should be implemented...

added getPortalType method. Some day, all parts of ERP5 should be implemented as ERP5 documents including ERP5 Site.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15977 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3334868a
......@@ -181,6 +181,7 @@ class ERP5Site(FolderMixIn, CMFSite):
of a new ERP5. It should not assist in the functionality at all.
"""
meta_type = 'ERP5 Site'
portal_type = 'ERP5 Site'
constructors = (('addERP5Site', manage_addERP5SiteForm), manage_addERP5Site, )
uid = 0
last_id = 0
......@@ -242,6 +243,11 @@ class ERP5Site(FolderMixIn, CMFSite):
def getPortalObject(self):
return self
security.declareProtected(Permissions.AccessContentsInformation,
'getPortalType')
def getPortalType(self):
return self.portal_type
security.declareProtected(Permissions.AccessContentsInformation,
'getTitle')
def getTitle(self):
......
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