[Zope] how to get absolute url from a ZCatalog-brain

Peter Bengtsson peter at fry-it.com
Tue Oct 25 04:56:13 EDT 2005


Without waking up the object you have to use Meta data in the catalog.
Unless there's some physical path already on the brain object which
can help you "calculate" the absolute url.
With waking up the object is done like this: brain.getObject().absolute_url()


On 10/25/05, robert rottermann <robert at redcor.ch> wrote:
> hi there,
> is there a way to get the absolute url from a brain returned by a
> catalog serch without waking the object up.
> brain.absolute_url() returns the catalog's url.
>
> thanks
> Robert
> _______________________________________________
> Zope maillist  -  Zope at 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 )
>


--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com


More information about the Zope mailing list