Jérôme Loisel wrote:
Hi!
My site has an admin menu. That was originally a DTML Method which had become long, complex and hard to maintain. So I re-wrote it as a Python Script. But I now have an additional problem.
When my DTML Method is called from /folder/document.html/method, this() refers to the document. But in PythonScript, context and context.this() refer to folder/ instead. Does anyone know how to have access to the document.html object instead?
Thanks in advance. I can supply sample code if I am being unclear. Cheers,
Jérôme Loisel
-- Jérôme Loisel, étudiant et webmestre Lévinux: GNU/Linux pour la communauté http://www.levinux.org/
Is document.html a DTML Document or method? When I try this it works fine on DTML Documents (Context is the document), but on DTML Methods it behaves as you describe and as I would expect since DTML Methods do not have a namespace for themselves. -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------>