[Zope] manage_users problem

Steve Drees drees@the-bridge.net
Tue, 23 May 2000 16:50:00 -0500


I have the following code stuffed away in a DTML Method

<dtml-call "REQUEST.set('name','steve3')">
<dtml-call "REQUEST.set('password','test')">
<dtml-call "REQUEST.set('confirm','test')">
<dtml-call "REQUEST.set('roles','RegisteredUser')">
<dtml-call "acl_users.manage_users('Add',REQUEST,RESPONSE)">>

After that code excutes there is a user with the name 'steve3'
but if I try to edit 'steve3' via the web interface I get the following.

****
Zope has encountered an error while publishing this resource.

Error Type: TypeError
Error Value: string member test needs char left operand

<!--
Traceback (innermost last):
  File
/home/drees/zope/Zope-2.1.2-linux2-x86/lib/python/ZPublisher/Publish.py,
line 214, in publish_module
  File
/home/drees/zope/Zope-2.1.2-linux2-x86/lib/python/ZPublisher/Publish.py,
line 179, in publish
  File /home/drees/zope/Zope-2.1.2-linux2-x86/lib/python/Zope/__init__.py,
line 202, in zpublisher_exception_hook
    (Object: RoleManager)
  File
/home/drees/zope/Zope-2.1.2-linux2-x86/lib/python/ZPublisher/Publish.py,
line 165, in publish
  File
/home/drees/zope/Zope-2.1.2-linux2-x86/lib/python/ZPublisher/mapply.py, line
160, in mapply
    (Object: manage_users)
  File
/home/drees/zope/Zope-2.1.2-linux2-x86/lib/python/ZPublisher/Publish.py,
line 102, in call_object
    (Object: manage_users)
  File
/home/drees/zope/Zope-2.1.2-linux2-x86/lib/python/AccessControl/User.py,
line 578, in manage_users
    (Object: RoleManager)
  File
/home/drees/zope/Zope-2.1.2-linux2-x86/lib/python/App/special_dtml.py, line
120, in __call__
    (Object: _editUser)
  File
/home/drees/zope/Zope-2.1.2-linux2-x86/lib/python/DocumentTemplate/DT_String
.py, line 502, in __call__
    (Object: _editUser)
  File
/home/drees/zope/Zope-2.1.2-linux2-x86/lib/python/DocumentTemplate/DT_In.py,
line 691, in renderwob
    (Object: valid_roles)
  File
/home/drees/zope/Zope-2.1.2-linux2-x86/lib/python/DocumentTemplate/DT_Util.p
y, line 335, in eval
    (Object: _vars['sequence-item'] in user.roles)
    (Info: _vars)
  File &lt;string&gt;, line 0, in ?
TypeError: (see above)




-steve
----
drees@the-bridge.net   http://www.the-bridge.net/~drees
"A problem well stated, is a problem half-solved." - C. Kettering