Commit fa803092 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Do not rely on filesystem Base Property Sheet to genereate getId

accessor, necessary for the bootstrap with only ZODB Property Sheets



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39878 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 78fe0891
......@@ -964,11 +964,7 @@ class Base( CopyContainer,
# XXX This is necessary to override getId which is also defined in SimpleItem.
security.declareProtected( Permissions.AccessContentsInformation, 'getId' )
for prop in PropertySheet.Base._properties:
if prop['id'] == 'id':
getId = BaseAccessor.Getter('getId', 'id', prop['type'],
default = prop.get('default'), storage_id = prop.get('storage_id'))
break
BaseAccessor.Getter('getId', 'id', 'string')
# Debug
def getOid(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