[Zope] Adding users using own forms

Chris Herrnberger chris123@magma.ca
Mon, 12 Nov 2001 07:08:42 -0500


Greetings: 

Use the forms and scipts provided by zope labs for "Adding users using your 
own forms" (see below) gives the following error for this newbie:

Zope has encountered a problem publishing your object.
Cannot locate object at: http://xx.xx.xx.xx:8080/test/add_user 

Traceback:
File /home/chris/zope233b1/lib/python/ZPublisher/Publish.py, line 223, in 
publish_module
File /home/chris/zope233b1/lib/python/ZPublisher/Publish.py, line 187, in 
publish
File /home/chris/zope233b1/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
(Object: Traversable)
File /home/chris/zope233b1/lib/python/ZPublisher/Publish.py, line 162, in 
publish
File /home/chris/zope233b1/lib/python/ZPublisher/BaseRequest.py, line 370, in 
traverse
File /home/chris/zope233b1/lib/python/ZPublisher/HTTPResponse.py, line 557, 
in debugError
NotFound: (see above)

The form is rather simple and the script even cleaner:

Form:

<form action="add_user" method="post">
Name:  <input type="text" name="name"><br>
Password: <input type="password" name="password" ><br>
Confirm password: <input type="password" name="confirm"><br>

User roles: <br>
<select name="roles:list" size="5" multiple>
<dtml-in valid_roles>
<dtml-if expr="_vars['sequence-item'] != 'Anonymous'">
<dtml-if expr="_vars['sequence-item'] != 'Shared'">
<option value="<dtml-var sequence-item html_quote>"><dtml-var sequence-item>
</dtml-if>
</dtml-if>
</dtml-in valid_roles>
</select>
<br>
<input type="submit" name="submit" value="Add" />
</form>

Script:
context.acl_users.manage_users('Add', context.REQUEST)
return "User added!"

Any help sorting this out would be appreciated.

Best and thanks

Chris