[Zope] Problem with programmatically adding users to acl_users

Ruth Mizzi ruth at anvil.com
Wed Oct 8 06:58:19 EDT 2003


Hi,

I've just created a little dtml script to carry out user registratin... when a user fills in the form he should be added as a site user and thus added to acl_users. The structure I got is the following

/Zope Root Folder
       / Parent Folder
             / acl_users
             / Registration folder
                  - registerForm.html
                  - registerAction.dtml


The dtml method is one I've found listed on loads of sites ....

<h2>User Registration</h2>

<dtml-call "REQUEST.set('username', '<username>')">
<dtml-call "REQUEST.set('password', '<password>')">
<dtml-call "REQUEST.set('confirm', '<confirm>')">
<dtml-call "REQUEST.set('roles', ['Member'])">
<dtml-call "REQUEST.set('domains', ['Domain1'])">
<dtml-call "REQUEST.set('submit', 'Add')">
<dtml-call "acl_users.manage_users(submit='Add', REQUEST=REQUEST)">

I'm getting no errors reported but also I'm getting no user created in the folder...

what's going wrong?

Ruth

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.zope.org/pipermail/zope/attachments/20031008/614a7310/attachment-0001.html


More information about the Zope mailing list