[ZPT] user variable and python products

Evan Simpson evan@zope.com
Thu, 11 Oct 2001 11:26:22 -0400


Clint Brubakken wrote:

> I've created a python product with some zpt pages, that are include by :
> index_html = PageTemplateFile('www/index_html',globals())
> 
> I use a macro on this template that accesses the "user" variable. I get
> a name error on user when the template is viewed, where the object is
> stored.
> 
> When I wrapped all exprssions that access  with  <span
> tal:condition="user | nothing"></span> it works

Could you elaborate?  I didn't quite follow your explanation.  Where is 
"user" referenced?

Cheers,

Evan @ Zope