20 Aug
2002
20 Aug
'02
8:09 p.m.
ra@burningman.com writes:
Dieter Maurer wrote:
Ra writes:
is there any way to gain access to an instance of a zclass from a dtml method that is within that zclass? When called from ZPublisher (i.e. the Web), it should run in the context of this Z instance, i.e. the instance is at the top of the DTML namespace. You can (under these conditions) use its "this" method to get the instance itself.
Alas, "this" isn't working; I get "global name 'this' is not defined". Looks like the DTML Method is not called correctly (apparently, nothing on its namespace has an acquisition context).
How is th DTML Method activated? Via ZPublisher? Explicitely? Dieter