[Zope] Newbie - passing a list to an External Method

Passin, Tom tpassin@mitretek.org
Tue, 22 Apr 2003 11:43:59 -0400


[ Dylan Reinhardt]
>=20
> I'm not sure if I can explain _all_ of what you're seeing here... you
> seem to be having a different error than you were before and I don't
> have any experience with the sping module.
>=20
> But... do have something to recommend.  Use:
>=20
> def run(self, fileID, lines):
>=20
> to define your external method. =20
>=20
> The first argument passed to an external method is the "self"=20
> object, a
> reference to the context from which the method was called. =20
>=20

Aren't you mixing up Python scripts with External Methods?  I have never
included a 'self' parameter in any of my external methods and they work
just fine.

Cheers,

Tom P