[Erp5-report] r39878 arnaud.fontaine - /erp5/trunk/products/ERP5Type/Base.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Nov 4 07:46:35 CET 2010
Author: arnaud.fontaine
Date: Thu Nov 4 07:46:31 2010
New Revision: 39878
URL: http://svn.erp5.org?rev=39878&view=rev
Log:
Do not rely on filesystem Base Property Sheet to genereate getId
accessor, necessary for the bootstrap with only ZODB Property Sheets
Modified:
erp5/trunk/products/ERP5Type/Base.py
Modified: erp5/trunk/products/ERP5Type/Base.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Base.py?rev=39878&r1=39877&r2=39878&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Base.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Base.py [utf8] Thu Nov 4 07:46:31 2010
@@ -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):
More information about the Erp5-report
mailing list