Do this: return container.getPhysicalRoot.absolute_url() Not this: return container.getPhysicalRoot().absolute_url() The return value of getPhysicalRoot probably doesn't have an absolute_url attribute :o) Regards, Phil +------------------------------------------+ | Phil Mayers | | Network & Infrastructure Group | | Information & Communication Technologies | | Imperial College | +------------------------------------------+ -----Original Message----- From: Horst Wald [mailto:horstwald@hotmail.com] Sent: 11 January 2002 16:08 To: zope@zope.org; website-talk-admin@list.ora.com Subject: [Zope] getPhysicalRoot() Hi, I wrote a very simple python script: return container.getPhysicalRoot().absolute_url() And I get: Error Type: AttributeError Error Value: getPhysicalRoot What's wrong??? Horst _________________________________________________________________ Testen Sie MSN Messenger für Ihren Online-Chat mit Freunden: http://messenger.msn.de _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
"Mayers, Philip J" wrote:
Not this:
return container.getPhysicalRoot().absolute_url()
This is the correct one...
The return value of getPhysicalRoot probably doesn't have an absolute_url attribute :o)
...and AFAIK, application instances (which getPhysicalRoot returns) _do_ have an absolute_url parameter... cheers, Chris
participants (2)
-
Chris Withers -
Mayers, Philip J