[Zope3-Users] absolute_url in the viewlet ?

Christophe Combelles ccomb at free.fr
Mon Oct 2 22:14:22 EDT 2006


Hi,

How can I obtain the absolute_url of the context object in a content provider or 
in a viewlet ?

For example, in the demo3 of zope3demos, the render() method of the viewlet 
returns  self.context.__name__.
( http://zope3demos.googlecode.com/svn/trunk/demo3/demo.py )

How could I tell it to return the absolute_url instead of the __name__ ?

(self.context.absolute_url gives a ForbiddenAttribute error.)


thanks,
Christophe


More information about the Zope3-users mailing list