[Grok-dev] context in grok.Annotation
Jan-Wijbrand Kolman
janwijbrand at gmail.com
Wed Jan 14 06:01:19 EST 2009
Hi,
Is there a reason why a grok.Annotation component does not have a
context passed into its __init__? It would be trivial to implement and
in certain cases very useful to be able to get to the context within
the annotation. Or does this have persistence repercussions?
Another aproach would be to have the grok.Annotation component
subclass zope.app.container.contained.Contained (or just have it
implement ILocation) so that within the annotations you have access to
the __parent__ attribute (being the context).
regards,
jw
--
Jan-Wijbrand Kolman
More information about the Grok-dev
mailing list