open a database connection
Hi, How can I open a database connection from dtml? Thanks in advance, Tom.
Hi, sorry, found it by myself somewhere in the zope directory: for the people who are interesed: manage_open_connection manage_close_connection Regards, Tom. At 14:46 17/08/2000 +0200, Tom Deprez wrote:
Hi,
How can I open a database connection from dtml?
Thanks in advance,
Tom.
_______________________________________________ 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 )
Forgive me for this stupid question: How to assing a string value to a variable in DTML? for example: <dtml-let a='aaaaa' b='bbbbb'> <dtml-var "a+b"> </dtml-let> it causes error, not what I expected: given a="aaaa", b="bbbb", and eval a+b to "aaaabbbb" Thanks iap
<dtml-let a="'aaaaa'" b="'bbbbb'"> <dtml-var "a+b"> </dtml-let> Notice the quotes. See the How to on Let tags: http://www.zope.org/Members/michel/HowTos/LetTagHow-To DR "iap_y2fun.com" wrote:
Forgive me for this stupid question: How to assing a string value to a variable in DTML? for example:
<dtml-let a='aaaaa' b='bbbbb'> <dtml-var "a+b"> </dtml-let>
it causes error, not what I expected: given a="aaaa", b="bbbb", and eval a+b to "aaaabbbb"
Thanks
iap
_______________________________________________ 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 (3)
-
Daniel Rusch -
iap_y2fun.com -
Tom Deprez