obj = request['PUBLISHED'] print repr(obj) <FSPageTemplate at /atlas/maptext_view used for /atlas/maps.mtp/environment.mtp/seaice.mtp/break-up.thm/1.mtx> I have the FSPageTemplate ... It's being applied to "1.mtx". How do I get to "1.mtx" directly, getting rid of the Page Template? I want to end up with this object: <MapTopicText at /atlas/maps.mtp/environment.mtp/seaice.mtp/break-up.thm/1.mtx> I want to get to the object the template is being applied TO. J.F. -----Original Message----- From: Andreas Jung [mailto:lists@zopyx.com] Sent: September 20, 2007 08:57 To: Doyon, Jean-Francois; Andreas Jung; zope@zope.org Subject: RE: [Zope] PageTemplate API Question --On 20. September 2007 08:54:20 -0400 "Doyon, Jean-Francois" <jdoyon@NRCan.gc.ca> wrote:
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.
No idea what you mean or want... -aj