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 )