-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Doyon, Jean-Francois wrote:
Well I just looked at "Using Zope Page Templates" and "Advanced Page Templates" and "Appendix C", and although "context" is mentionned many times (And I of course knew about that one!) it's all in the context of TAL/TALES, which is a different beast than a code level FSPageTemplate instance.
My FSPageTemplate instance doesn't seem to have a "context" attribute/property or method. I've dir()'ed it, but don't see anything that jumps out at me as being useful for what I'm trying to do.
You want the non-containment aqcuisition parent: from Acquisition import aq_parent return aq_parent(template) Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG8pzD+gerLs4ltQ4RAhmIAJ9oF4dHOytzxeU5cQdRG+BkODylXQCfYcFV GwhLEAS518lDqMIf1hY8lpY= =sfnT -----END PGP SIGNATURE-----