[Zope] python products and properties
   
    Max M
     
    maxmcorp@worldonline.dk
       
    Wed, 6 Jun 2001 22:43:16 +0200
    
    
  
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
> Oliver Bleutgen
> Right now I have to manually assign a newly added
> property to already existing instances, because
> adding the property in the _properties class
> attribute breaks the properties management tab of
> these instances.
> Am I missing something? What do others do?
class yourClass(parentClass):
    _properties = parentClass._properties + (
        {'id':'yourProperty', 'type': 'string'},
    )
    def __init__(self):
        self.yourProperty = ''
Something like this perhaps?
regards
    Max M