[Zope] DTML-stuff calling from Python Script
bogdan@iuveno-net.de
bogdan@iuveno-net.de
Tue, 08 Jan 2002 16:44:17 +0100 (CET)
Hello.
How to call an DTML Method from Python Script? It could be same as from
DTML stuff: <dtml-var somewhere.script(value)> or <dtml-call expr="...">
But vice versa (dtml-method from script) always fails in anyway:
------------------------
print context.doc_here
return printed
------------------------
Works, but just prints the source (not parses)
------------------------
return context.doc_here(_,_)
------------------------
Fails with "guarded_getattr"
------------------------
return context.doc_here(_)
------------------------
Fails with "standard_html_header" (key_error)
------------------------
return context.doc_here
------------------------
Works, but just prints the source (quoted, not parses)
Anybody know how to call it? Documentation claims, that it should work.
But it does not.
P.S. Namespace defined as well.
--
Sincerely yours,
Bogdan M.Maryniuck