Thanks guys, I stumbled upon the answer shortly after the post. Unfortunately, when the script ran it removed my manager role and lumped me in with the rest of the staff. Sure am glad I read about the emergency user in the zope book!! On Fri, Aug 24, 2001 at 02:17:16PM -0800, Tommy Johnson wrote:
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 )
_______________________________________________ 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 )
-- Michael Montagne montagne@boora.com http://www.boora.com