[Zope-CMF] Visibility of global variables

Florent Guillaume fg@nuxeo.com
Tue, 15 Oct 2002 18:02:24 +0000 (UTC)


Andreas Jung  <lists@andreas-jung.com> wrote:
> Inside a ZPT I have something like:
> 
> <html...>
> <span tal:define="global is_allowed python: here.is_allowed()" />
> 
> <div metal:fill-slot="main">
> 
>   <div tal:condition="is_allowed"> ....
> 
> 
> This fails with "Undefined, is_allowed is not found in 'is_allowed'".

If the tal:define is inside a use-macro but outside an evaluated
fill-slot it won't get processed.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com