[ZPT] Strange session behavior with macro-call
chris at simplistix.co.uk
Tue Jun 27 03:31:30 EDT 2006
Jeff Peterson wrote:
> I have a page template that calls a couple of scripts at the beginning,
> they are setting session objects and redirecting to a login screen if
> certain session objects don't exist.
Why not just use PAS or Cookie Crumbler? ;-)
> the content for this page. When the macro is rendered, the scripts fail
> to operate properly (commented out they work perfectly).
I'll bet your doing something like:
<mytag tal:define="dummy here/myScript"
The macro replaces the whole tag before the tal:define gets called.
Anyway, overarchingly, don't mix presentation and logic like this, 'cos
it causes these kind of problems ;-)
Simplistix - Content Management, Zope & Python Consulting
More information about the ZPT