[ZCM] [ZC] 109/ 2 Resolve ""tal:define ... or ..." gives an error"

Collector: Zope Bugs and Patches ... zope-coders@zope.org
Fri, 15 Feb 2002 14:44:22 -0500


Issue #109 Update (Resolve) ""tal:define ... or ..." gives an error"
 Status Resolved, Zope/bug medium
To followup, visit:
  http://collector.zope.org/Zope/109

==============================================================
= Resolve - Entry #2 by evan on Feb 15, 2002 2:44 pm

 Status: Pending => Resolved

The idiom "python:path('request/something') or 0" no longer works due to a fix in the way exceptions are handled.  Instead, use "python:path('request/something | nothing') or 0".
________________________________________
= Request - Entry #1 by Anonymous User on Dec 28, 2001 10:52 am

Moving my testbed from 2.5.0b2 to 2.5.0b3 i get an error with a page template.

the line in the template:
  <span tal:define="global something python:path
  ('request/something') or 0;>

gives the following error:

Error Type: Undefined
Error Value: b_start not found in 'request/b_start', at line 167, column 47

This worked fine with 2.5.0b2

Would be glad if anyone could give me a clue...

==============================================================