[Zope] __getitem__ errors on Python Script

Jason Straw jstraw@towhee.com
16 Feb 2001 18:26:16 -0500


Thanks so far...

On 16 Feb 2001 16:44:18 -0500, Evan Simpson wrote:

> From: Jason Straw <jstraw@towhee.com>
> > ##
> > print "<html><head><title>" + script.title + "</title></head><body
> bgcolor='white'>"
> > print '<h2>' + script.title + '</h2>'
> > for x in context.classlist:
> 
> ^^^ Line 4 (Count all of the ## lines as line 1)
> 
> >   File Script (Python), line 4, in submita_html
> > AttributeError: __getitem__
> 
> Looks like context.classlist isn't a sequence, so you can't loop over it.
> 

in the same folder is a TinyTable+ with three fields: username, fname,
and lname.  it is called classlist.
I am tring to access it to authenticate a user as a member of the class.

> Cheers,
> 
> Evan @ digicool & 4-am
> 


Jason