Commit 95850c2c authored by Rafael Monnerat's avatar Rafael Monnerat

Return True if a ERP5 Site is present as subobject. This is

      usefull to identify if a erp5 is present already on a Zope
      Setup.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44218 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9d777e90
...@@ -46,3 +46,12 @@ def Folder_setOb(self, id, object): ...@@ -46,3 +46,12 @@ def Folder_setOb(self, id, object):
_updateCacheEntry(self.id, id) _updateCacheEntry(self.id, id)
Folder._setOb = Folder_setOb Folder._setOb = Folder_setOb
def Folder_isERP5SitePresent(self):
""" Return True if a ERP5 Site is present as subobject. This is
usefull to identify if a erp5 is present already on a Zope
Setup.
"""
return len(self.objectIds("ERP5 Site")) > 1
Folder.isERP5SitePresent = Folder_isERP5SitePresent
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