Commit f6c198b0 authored by Vincent Pelletier's avatar Vincent Pelletier

ERP5Type.Core.Folder: Move hard-coded isTempObject to the only place it makes sense.

In preparation of reordering Folder inheritance order.
parent ab0aab8a
......@@ -1806,6 +1806,12 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
for obj in tool.objectValues():
obj.migrateToPortalTypeClass()
security.declarePublic('isTempObject')
def isTempObject(self):
"""Return true if self is an instance of a temporary document class.
"""
return 0
Globals.InitializeClass(ERP5Site)
def getBootstrapDirectory():
......
......@@ -162,13 +162,6 @@ class FolderMixIn(ExtensionClass.Base):
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)
security.declarePublic('isTempObject')
def isTempObject(self):
"""Return true if self is an instance of a temporary document class.
"""
# Note: Folder inherits from Base and FolderMixIn but Base has priority.
return 0
security.declarePublic('newContent')
def newContent(self, id=None, portal_type=None, id_group=None,
default=None, method=None, container=None, temp_object=0, **kw):
......
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