RE: [Zope] calling Python Script from dtml-let
I've noticed a quirk which is that <dtml-let value = "expression"> does not work, but <dtml-let value="expression"> does. OK, maybe it's not a quirk, but by design. Either way, I'd give that a try. Jim
-----Original Message----- From: Bill Seitz [mailto:bill@fluxent.com] Sent: Sunday, October 17, 2004 9:04 PM To: zope@zope.org Subject: [Zope] calling Python Script from dtml-let
I have a simple Python Script called passwordRandom().
It works fine if I call it with: <dtml-call "REQUEST.set('password', passwordRandom())">
But I want that value to be available for some other things, so I want to set a variable with dtml-let.
But if I do: <dtml-let password2 = "passwordRandom()"> (with a </dtml-let> further down)
Then I get
invalid parameter: "password = "passwordRandom()"", for tag <dtml-let password = "passwordRandom()">, on line 18 of ActivateAccountHack
What stupid mistake am I making? _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Egads I think that worked. Thanks. Jim Abramson wrote:
I've noticed a quirk which is that
<dtml-let value = "expression"> does not work, but <dtml-let value="expression"> does.
OK, maybe it's not a quirk, but by design. Either way, I'd give that a try.
Jim
Hi, Am Mo, den 18.10.2004 schrieb Jim Abramson um 18:57:
I've noticed a quirk which is that
<dtml-let value = "expression"> does not work, but <dtml-let value="expression"> does.
OK, maybe it's not a quirk, but by design. Either way, I'd give that a
I bet the answer is burried deep in the HTML (SGML) nature of DTML. I've never seen a legal HTML tag with spaces around attributename, = and the attributevalue. Nor seems the DTML parser ;) Regards Tino.
participants (3)
-
Bill Seitz -
Jim Abramson -
Tino Wildenhain