calling external script from index_html
Hello list, just getting going and already belly-flopped at the first hurdle. In a folder holding the external method object, an index_html referencing it via <dtml-val myscript_func> does not appear to run the script, while a dtml method created in the same folder and making the same reference does run ok. I tried moving the external method object into a higher level folder in case it somehow was not in scope, but to no avail. What is the correct way to make external scripts available to index_html's? Cheers, Chris Quinn
What kind of object is your index_html? Christopher Quinn wrote:
Hello list,
just getting going and already belly-flopped at the first hurdle. In a folder holding the external method object, an index_html referencing it via <dtml-val myscript_func> does not appear to run the script, while a dtml method created in the same folder and making the same reference does run ok. I tried moving the external method object into a higher level folder in case it somehow was not in scope, but to no avail.
What is the correct way to make external scripts available to index_html's?
Cheers, Chris Quinn
_______________________________________________ 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 )
-- Chris McDonough Zope Corporation http://www.zope.org http://www.zope.com "Killing hundreds of birds with thousands of stones"
OK, what you're doing definitely should work. The other method that does work, can you change its name to index_html and try it? ----- Original Message ----- From: "Christopher Quinn" <cq@htec.demon.co.uk> To: "zope" <zope@zope.org> Sent: Tuesday, July 23, 2002 8:35 AM Subject: Re: [Zope] calling external script from index_html
Chris McDonough wrote:
What kind of object is your index_html?
It's a dtml method.
_______________________________________________ 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 )
Chris McDonough wrote:
OK, what you're doing definitely should work. The other method that does work, can you change its name to index_html and try it?
Blast! I'm very sorry for wasting your time. the index_html was in fact a page template. but that makes me wonder why templating does not incorporate such dynamical things. - chris ps. unrelated Q: there seems to be no DB2 product but I have found a working driver for straight python - is there some easily digested example of programmatically setting up a session wide db connection ie. that persists over invocation of a series of external methods which end in committing the transaction?
make index_html a DTML Method, not a DTML document. jens On Tuesday, July 23, 2002, at 07:10 , Christopher Quinn wrote:
Hello list,
just getting going and already belly-flopped at the first hurdle. In a folder holding the external method object, an index_html referencing it via <dtml-val myscript_func> does not appear to run the script, while a dtml method created in the same folder and making the same reference does run ok. I tried moving the external method object into a higher level folder in case it somehow was not in scope, but to no avail.
What is the correct way to make external scripts available to index_html' s?
Cheers, Chris Quinn
participants (3)
-
Chris McDonough -
Christopher Quinn -
Jens Vagelpohl