Commit e746495b authored by Nicolas Dumazet's avatar Nicolas Dumazet

revert 41179: committed wrong file, sorry


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41180 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4c0c52a8
......@@ -211,7 +211,6 @@ class ERP5TypeInformation(XMLObject,
acquire_local_roles = False
property_sheet_list = ()
zodb_property_sheet_list = ()
base_category_list = ()
init_script = ''
product = 'ERP5Type'
......@@ -347,6 +346,8 @@ class ERP5TypeInformation(XMLObject,
ob = klass(id)
if temp_object:
if id in (None, ''):
raise ValueError("invalid object id")
ob = ob.__of__(container)
for ignore in ('activate_kw', 'is_indexable', 'reindex_kw'):
kw.pop(ignore, None)
......@@ -375,10 +376,7 @@ class ERP5TypeInformation(XMLObject,
#ob._setPortalTypeName(self.getId())
# XXX rafael: if we use _set because it is trigger by interaction
# workflow and it is annoyning without security setted
try:
ob.portal_type = self.getId()
except:
import pdb; pdb.set_trace()
ob.portal_type = self.getId()
if not temp_object:
# Do not reindex object because it's already done by manage_afterAdd
......@@ -425,12 +423,6 @@ class ERP5TypeInformation(XMLObject,
"""Getter for 'type_property_sheet' property"""
return list(self.property_sheet_list)
security.declareProtected(Permissions.AccessContentsInformation,
'getTypeZodbPropertySheetList')
def getTypeZodbPropertySheetList(self):
"""Getter for 'zodb_type_property_sheet' property"""
return list(self.zodb_property_sheet_list)
security.declareProtected(Permissions.AccessContentsInformation,
'getTypeBaseCategoryList')
def getTypeBaseCategoryList(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