24 Jul
2001
24 Jul
'01
7:03 p.m.
seb bacon writes:
....; but
fruit = aq_get(context, 'Kiwi', default, 1)
will return None. However, if I do
fruit = aq_get(context.aq_parent, 'Kiwi', default, 1)
I get my Hairy Egg-sized Fruit as expected. This may be possible, if your "context" involves an "Acquisition.Explicit" object, such as e.g. a DTML document.
However, it would be unclear, why you 'Pineapple' works then. You know Shane's "showaq" method? It allows you to display the acquisition structure. This may help to understand the observations. Dieter