[Zope] REQUEST syntax

Tommy Johnson tommy@7x.com
Fri, 24 Aug 2001 14:17:16 -0800


You can't nest <dtml> tags. Yeah, that threw me for a loop when I first
started too. ;-)

You'll have to access the namespace for the inner variable in another way.
Usually, I use the underscore for this. Probably something like:

<dtml-call "REQUEST.set('name', _['Login'])">
<dtml-call "REQUEST.set('password',  _['password'])">

HTH,
Tommy

Innovation:
The Best Way To Predict The Future ...
     Is To Create It.


> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
> Montagne, Michael
> Sent: Friday, August 24, 2001 1:35 PM
> To: 'zope@zope.org'
> Subject: [Zope] REQUEST syntax
>
>
> I'm attempting to loop through a database and create users.  I can
> successfully print a table with all the proper info but the users are not
> being added.
> No errors but no users.  If I plug in  specific strings (ie <dtml-call
> "REQUEST.set('name','bob')">), it works ok.
>
> This is my code:
>
> <dtml-call "REQUEST.set('name','<dtml-var Login>')">
> <dtml-call "REQUEST.set('password','<dtml-var password>')">
> <dtml-call "REQUEST.set('confirm','<dtml-var password>')">
> <dtml-call "REQUEST.set('domains',[])">
> <dtml-call "REQUEST.set('roles',['Staff' 'YihawAuthor'])">
> <dtml-call "acl_users.manage_users('Add',REQUEST,RESPONSE)">
>
> What is wrong?
>
>
> _______________________________________________
> 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 )