[Zope] Python error: object does not support item
or slice assignment
Florian Lindner
mailinglists at xgm.de
Sat Sep 27 03:18:14 EDT 2003
Florian Lindner wrote:
> Dieter Maurer wrote:
>
>> Florian Lindner wrote at 2003-9-26 13:46 +0200:
>> > ...
>> > Error Type: TypeError
>> > Error Value: object does not support item or slice assignment
>> > > The Log says that the error is on line 5, marked with <--.
>> > ...
>> > REQUEST['__ac_name'] = REQUEST['username'] <--
>>
>> It is write:
>>
>> Use "REQUEST.set('__ac_name', REQUEST['username'])"
>
>
> Thanks, the script works now.
> But I still can't login. I'm using exUserFolder and this script to
> login. Username and Password are right, but I'm always redirected to the
> error page.
> But what can be wrong?
Ok, some more information I forgot. I want to login before the user
requests a protected page. Just a login form to authentificate right
away at the beginning of the site visit.
Thanks,
Florian
More information about the Zope
mailing list