On Tuesday 28 November 2006 14:07, Rupert Redington wrote: > I've just made my first annotation adapter using > zope.annotation.factory, but I find myself needing access to some > attributes of the adapted object. Using the older pattern I would gain > access to the original object through the context passed to the __init__ > of my adapter. The annotations factory doesn't pass a context to the > adapter. > > Should I revert to the old pattern if I'm going to need continued access > to the unadapted object or is there a clever reference somewhere that I > can't find?
The __parent__ attribute of the annotation is the adapted object. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training _______________________________________________ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users