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'". Bug or feature? Andreas