[Zope] attribute error?

Jeff Sasmor Jeff Sasmor" <jsasmor@gte.net
Sun, 13 May 2001 10:40:06 -0400


I don't use python scripts, but wouldn't it be
correct to use

for x in context.shopping_cart.test3():

instead, since test3 appears to be a function..

jeff sasmor

-----Original Message-----
From: Tom Deprez <tom.deprez@village.uunet.be>
To: zope@zope.org <zope@zope.org>
Date: Sunday, May 13, 2001 8:57 AM
Subject: [Zope] attribute error?


Why does the following script returns an attribute error?

for x in context.shopping_cart.test3:
  print x

while test3 only contains 

return [1,2]

Tom.


_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )