[Zope-dev] How to aquire from Context?

2001-06-17 Thread Matt Hamilton
Dear All, I have been trying to work out how to acquire a DTML method first by context rather than by containment. According to the ZDG (Great read, thanks guys!): -- snip -- Containment Before Context If in the example above suppose both a and b have an color attribute: a=C(a)

Re: [Zope-dev] How to aquire from Context?

2001-06-17 Thread Dieter Maurer
Matt Hamilton writes: According to the ZDG (Great read, thanks guys!): -- snip -- (Acquisition works by: ) Containment Before Context Now that makes perfect sense to me and I can see why it happens as such. However what if I want (Context Before Containment). I

Re: [Zope-dev] How to aquire from Context?

2001-06-17 Thread Chris Withers
Matt, Evan Simpson came up with some external methdos that do exactly what you want about 6 months to a year ago. If you search the zope.nipltd.com archives for [EMAIL PROTECTED] and [EMAIL PROTECTED] you may well be able to find what you're after :-) cheers, Chris Matt Hamilton wrote: