[ZPT] Strange session behavior with macro-call
Chris Withers
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"
metal:use-macro="something">
...
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 ;-)
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
More information about the ZPT
mailing list