[Zope] calling Python Script from dtml-let

Jim Abramson jabramson at wgen.net
Mon Oct 18 12:57:59 EDT 2004


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 at fluxent.com] 
> Sent: Sunday, October 17, 2004 9:04 PM
> To: zope at 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 at 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 )
> 


More information about the Zope mailing list