[Zope3-Users] ZPT traverser for finding site
Stephan Richter
srichter at cosmos.phy.tufts.edu
Thu Jun 1 15:32:25 EDT 2006
On Tuesday 28 March 2006 09:19, Florian Lindner wrote:
> is there a ZPT traverser for finding the nearest site in Zope3?
>
> <a tal:attributes="href
> site/registrationForm/absoluteURL">register</a></li>
>
> because registrationForm is registered in my object which forms the site.
No there is not. Use the view class to look up the site using
zope.app.component.hooks.getSite() and then generate the URL.
Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
More information about the Zope3-users
mailing list