[Erp5-dev] _local_properties

Tomasz Brzezina tomasz at brzezina.pl
Wed Apr 2 14:37:12 CEST 2008


Jérome Perrin pisze:
> If you use svn revision > 20148, calling fixConsistency on this document 
> will repair this automatically by removing the local property.

I have again this problem, but now i'm confused:

I add boolean property, restart zope, then add new fields to skin - and 
modify some object - and Base_viewDict shows:

_local_properties	({'type': 'string', 'id': 'ads_home_agreement'}, 
{'type': 'string', 'id': 'home_ads_agreement'}, {'type': 'string', 'id': 
'promotions_agreement'}, {'type': 'string', 'id': 'analysis_agreement'}, 
{'type': 'string', 'id': 'email_ads_agreement'})

(all of those properties are boolean!

fixConsistency generates:
     *

       Module Products.ERP5Type.Constraint.PropertyTypeValidity, line 
97, in checkConsistency
       095 |    # if this property was a local property and has been 
later added in a
       096 |    # property sheet, we want to remove it from 
_local_properties
       097>|      if fixit and \
       098 |         property_id in [x['id'] for x in 
obj._local_properties] and \
       099 |         len([x for x in obj._propertyMap() if x['id'] == 
property_id]) > 1:

AttributeError: _local_properties

What to do?
-- 
Tomasz Brzezina

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3327 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20080402/7da44bfe/attachment.bin>


More information about the Erp5-dev mailing list