[Zope] getPhysicalRoot()

Mayers, Philip J p.mayers@ic.ac.uk
Fri, 11 Jan 2002 16:24:24 -0000


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                         |
+------------------------------------------+ =20

-----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=FCr Ihren Online-Chat mit Freunden:=20
http://messenger.msn.de


_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -=20
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )