[ZPT] how do I test the existence of a variable?

Shane Hathaway shane@zope.com
Thu, 21 Mar 2002 10:43:48 -0500


seb bacon wrote:
 > Thanks to everyone's replys, but we're still not there!
 >
 > Harry's response comes closest to my requirements:

While looking through the sources recently I stumbled upon the special
name "CONTEXTS", which when used at the base of a path expression, will
give you access to the namespace itself.  It is in
Products/PageTemplates/Expressions.py.

Shane