From 5e5596df443e82aba71433177d508157471d3550 Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Fri, 31 Aug 2007 11:42:46 +0000
Subject: [PATCH] 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
---
 product/ERP5/ERP5Site.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/product/ERP5/ERP5Site.py b/product/ERP5/ERP5Site.py
index 8a4d49bd0f..9a6ebc7782 100644
--- a/product/ERP5/ERP5Site.py
+++ b/product/ERP5/ERP5Site.py
@@ -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):
-- 
2.30.9