[Zope] PageTemplate API Question

Andreas Jung lists at zopyx.com
Thu Sep 20 09:50:01 EDT 2007



--On 20. September 2007 09:42:50 -0400 "Doyon, Jean-Francois" 
<jdoyon at NRCan.gc.ca> wrote:

> 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.
>

You might read my first reply carefully :-)
I told you about the 'context' object as it is present within your ZPT.
The 'context' object *IS* the object you are talking about.

(for further details -> The Zope Book with its three ZPT chapters)

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20070920/77cea27d/attachment.bin


More information about the Zope mailing list