[Zope] dtml access to "container" within zclass
Dieter Maurer
dieter@handshake.de
Tue, 20 Aug 2002 22:09:25 +0200
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