[Zope] Newbie - passing a list to an External Method
Dylan Reinhardt
zope@dylanreinhardt.com
17 Apr 2003 10:11:17 -0700
On Thu, 2003-04-17 at 08:01, Ashley Lloyd wrote:
> Error Type: AttributeError
> Error Value: __getitem__
This error is typical when the object you're trying to iterate over
isn't a sequence. Most likely, something you've done on lines 2-27 has
changed the value of lines to None.
Look extra carefully at any and all assignments you make in the external
method. In particular, it's possible you may have committed a common
error with lists, ex:
a = [1,2.3]
b = a
b = None
# now the value of a is None!
HTH,
Dylan