[Zope] Please Help! Wierd error that wasn't there before...

Rob Foster rob@thefosters.com
Mon, 5 Nov 2001 10:58:59 -0700


Great, that worked perfectly.

Thanks again.


On Sunday, November 4, 2001, at 11:56 AM, Dieter Maurer wrote:

> Rob Foster writes:
>> I had this working before... a user fills out a form which posts to a
>> script which in turn creates a new user. Now, when a user is created in
>> acl_users and when I click on it, I get the error below... I've tried
>> changing the roles, moving the acl_users directory and changing the
>> python script, all to no avail. The Zope user stuff is becoming really
>> frustrating. I could use some help. Thanks in advance.
>>
>> BEGIN ERROR
>> 'in ' requires character as left operand
>> ....
>> /Users/rfoster/Desktop/Zope-2.4.1-MOSX/lib/python/DocumentTemplate/DT_Util.
>> py, line 231, in eval
>>      (Object: _vars['sequence-item'] in user.roles)
>>      (Info: _vars)
>>    File <string>, line 0, in ?
>> TypeError: (see above)
> When you created your new user, you passed the "roles" parameter
> as a string. However, it must be a sequence...
>
> The management page you are accessing above uses
>
>     "<some_role> in user.roles"
>
> and this fails, because both "<some_role>" as well as
> "user.roles" are strings.
>
> Delete your user, fix your script (to pass a sequence of roles,
> not a string) and try again.
>
>
> Dieter
>