[z3-five] Annotations

Martijn Faassen faassen at infrae.com
Mon Aug 16 07:07:07 MEST 2004


Tim Hicks wrote:
> First up, I'm new around these parts (both Zope3 parts and Five parts), so
> go easy ;-). (I'm also not subscribed here, so cc's to me direct would be
> appreciated.)

Welcome!

> I want to write an adapter for a class (an archetype in case that makes
> any difference) that allows me to store and retrieve some additional
> attributes that are not part of the basic schema.  I figure annotations
> are a good way to go for this, right?
> 
> If so, what would I need to do to use zope3 annotations in Five?
> 

Hey,

As Philipp wrote already, most of what is needed should be part of Zope 
3. You might trip over things like new-style objects (Zope 3 might want 
to store a new style object), however.

In any case, whether it is easy to make work or not, we'd appreciate 
very much a report if you get them working in Five, and even more a 
little writeup about how you did it. This way we can include a little 
recipe in the Five documentation, add some automatic tests perhaps, and 
include any code changes needed to Five in a future distribution.

Regards,

Martijn




More information about the z3-five mailing list