Chris Withers wrote:

> self.manage_addProperty('AProperty','1\n2\n3','lines')

> I'm guessing that this is because self isn't an acquisition wrapper in
> __init__ (even though SimpleItem is Acquisition.Implicit) but what am I
> supposed to do to add a property in __init__?

I usually override _properties in the subclass, with the new property
definition, and then doing 

        self.Aproperty = '1\n2\n3'

works nicely.

-- 
Itamar S.T.  [EMAIL PROTECTED]
Fingerprint = D365 7BE8 B81E 2B18 6534  025E D0E7 92DB E441 411C

_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to