Sorry, I should've been clearer, I mean from product code (hence the API part of the subject line :) ... As best I can tell that object doesn't have a context attribute/property ... There's a bunch of "get*" methods, but nothing is jumping out at me as being what I want either ...
So I have request['PUBLISHED'] that is the template being applied to an object, and I want the object itself, in product code. I suppose I can go digg around to see how the TALES engine gets it's context variable ... Thanks, J.F. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Jung Sent: September 20, 2007 00:50 To: Doyon, Jean-Francois; zope@zope.org Subject: Re: [Zope] PageTemplate API Question huh --On 19. September 2007 17:00:03 -0400 "Doyon, Jean-Francois" <[EMAIL PROTECTED]> wrote: > If I have an object that is represented like this: > > <FSPageTemplate at /atlas/maptext_view used for > /atlas/maps.mtp/environment.mtp/seaice.mtp/break-up.thm/1.mtx> > > How do I get to the object the template is being applied to (i.e. > "1.mtx")? > 'context' - as documented in any ZPT related documentation (e.g. the three ZPT chapters of the "The Zope Book": <http://www.plope.com/Books/2_7Edition> -aj _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )