[ZCM] [ZC] 262/ 3 Reject ""

Collector: Zope Bugs and Patches ... zope-coders@zope.org
Wed, 06 Mar 2002 13:17:00 -0500


Issue #262 Update (Reject) ""
 Status Rejected, Zope/bug medium
To followup, visit:
  http://collector.zope.org/Zope/262

==============================================================
= Reject - Entry #3 by Amos on Mar 6, 2002 1:16 pm

 Status: Accepted => Rejected

I think that the problem is that you didn't add all the "years" parameter to your Python Script.

I tested the example, and it works fine for me when I make sure to include the parameters.

-Amos
________________________________________
= Assign - Entry #2 by ajung on Mar 5, 2002 9:59 am

 Status: Pending => Accepted

 Supporters added: amos


________________________________________
= Request - Entry #1 by Anonymous User on Mar 5, 2002 6:59 am

I'm not sure if this is an issue with the documentation or with Zope, particularly related to issues 179/180 dealing with expressions.py. Running through the Coding Logic with Scripts example in Chapter 3 of the latest Zope Book I invoke the following error:

The eror returned is:
Error Type: Undefined
Error Value: years not found in 'years', at line 5, column 9

and in the html source:
...
File /usr/local/zope/2.5.0/lib/python/Products/PageTemplates/TALES.py, line 269, in evaluateText
  File /usr/local/zope/2.5.0/lib/python/Products/PageTemplates/TALES.py, line 247, in evaluate
  File /usr/local/zope/2.5.0/lib/python/Products/PageTemplates/Expressions.py, line 189, in __call__
  File /usr/local/zope/2.5.0/lib/python/Products/PageTemplates/Expressions.py, line 179, in _eval
Undefined: (see above)
==============================================================