Hello, I am new to python ! I want to pass an argument to an external method. The argument is an dtml document (more precisely: the content of the document). I tried this: <dtml-var ExternalMethod(<dtml-var DtmlDocument>)> This produces a "parse error". I guess there have to be some quotes or brackets - but where? Thank's in advance Andreas
On Tue, 22 May 2001, Andreas Wandel wrote:
I am new to python !
Welcome!
I want to pass an argument to an external method. The argument is an dtml document (more precisely: the content of the document). I tried this:
<dtml-var ExternalMethod(<dtml-var DtmlDocument>)>
This produces a "parse error". I guess there have to be some quotes or brackets - but where?
You've made so many errors here. I cannot list all these errors - you better go and read docs. Good luck! And remember - no DTML inside DTML! Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
Andreas Wandel wrote:
Hello,
I am new to python !
I want to pass an argument to an external method. The argument is an dtml document (more precisely: the content of the document). I tried this:
<dtml-var ExternalMethod(<dtml-var DtmlDocument>)>
You cannot nest dtml tags inside one another like that. If you want to pass the rendered content of a DTML document to the method use: <dtml-var expr="ExtMethod(DTMLDocument(_.None,_))"> The weird arguments to the Document are used to pass the namespace to the document. If you want to just pass the whole document object, you can just use: <dtml-var expr="ExtMethod(DTMLDocument)">
This produces a "parse error". I guess there have to be some quotes or brackets - but where?
Thank's in advance
Andreas
hth -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------>
how come when we changed our filenames from index_html to index.html things started to get messy? some pages appear properly but some retrieve pages from other directories. is there a *rule* that we can't change this? Fritz Mesedilla Systems Administrator Summit Interactive, Inc. FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping femalenetwork.com | candymag.com | fhm.com.ph | cosmo.com.ph ---------------------------------------------------------------------------- http://contemplation401.tripod.com +Basta Ikaw Lord
Check out: http://www.zope.org/Members/Zen/tip_oldIndexDotHtmlSupport
From: "Fritz Mesedilla" <fritz.mesedilla@summitmedia.com.ph> Reply-To: <fritz.mesedilla@summitmedia.com.ph> Date: Wed, 23 May 2001 18:30:06 +0800 To: <zope@zope.org> Subject: [Zope] index.html problem
how come when we changed our filenames from index_html to index.html things started to get messy?
some pages appear properly but some retrieve pages from other directories.
is there a *rule* that we can't change this?
Fritz Mesedilla Systems Administrator
Summit Interactive, Inc. FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping femalenetwork.com | candymag.com | fhm.com.ph | cosmo.com.ph ---------------------------------------------------------------------------- http://contemplation401.tripod.com +Basta Ikaw Lord
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (5)
-
Andreas Wandel -
Casey Duncan -
Fritz Mesedilla -
marc lindahl -
Oleg Broytmann