Hello, I really got mangled with namespaces and acquisition. Here is my problem: From a form I call http://site/index_html?arg1=1&arg2=2 Now index_html will do <dtml-var "reports.overview()"> and reports.overview will do <dtml-in "sql.CntEntries()"> But this will report a traceback due to the fact that sql (a folder in root-folder, with all my ZSQL obj.) is not seen. (Please find the Traceback below) index_html is a DTML-Method reports.overview is a DTML-Method sql.CntEntries is a ZSQL-Method Why can't I call sql.CntEntries? Is there anywhere a good explanantion of namespaces and acquisition? Thanks Ulrich -- Searchengine Know How - Webpromotion - Optimization - Internal Search World Wide Web Publisher, Ulrich Wisser, Odensvag 13, S-14571 Norsborg http://www.publisher.de Tel: +46-8-53460905 Fax: +46-8-534 609 06
Hi, Ulrich Wisser wrote:
Hello,
I really got mangled with namespaces and acquisition. Here is my problem:
From a form I call
http://site/index_html?arg1=1&arg2=2
Now index_html will do
<dtml-var "reports.overview()">
try <dtml-var "reports.overview(_.None, _)"> ... Holger
Hi,
<dtml-var "reports.overview()">
try <dtml-var "reports.overview(_.None, _)">
but why? What is this needed for? Viele Grüße Ulrich -- Searchengine Know How - Webpromotion - Optimization - Internal Search World Wide Web Publisher, Ulrich Wisser, Odensvag 13, S-14571 Norsborg http://www.publisher.de Tel: +46-8-53460905 Fax: +46-8-534 609 06
Hi, Ulrich Wisser wrote:
Hi,
<dtml-var "reports.overview()">
try <dtml-var "reports.overview(_.None, _)">
but why? What is this needed for?
if you use something like <dtml-var expr="..."> you have to pass the namespace to the called DTML-Method/Document. With something like <dtml-var index_html> Zope will pass the namespace for you. See http://lists.zope.org/pipermail/zope/1999-December/057551.html ... Holger
Viele Grüße
Ulrich -- Searchengine Know How - Webpromotion - Optimization - Internal Search World Wide Web Publisher, Ulrich Wisser, Odensvag 13, S-14571 Norsborg http://www.publisher.de Tel: +46-8-53460905 Fax: +46-8-534 609 06
participants (2)
-
Holger Hoffmann -
Ulrich Wisser