[Zope] using getPhysicalRoot

Antonio Costa anjc@fct.unl.pt
Wed, 14 Mar 2001 18:33:09 +0000


This is a multi-part message in MIME format.
--------------7DDCDDA117F0F783C8424A0C
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi there

I'm having the following problem with the getPhysicalRoot method.

1. I call this method inside an object:
	a = self.getPhysicalRoot()
2.1. If I "exec" the object from Zope by clicking on it everything works
fine
3.1. If I call this object from another object via:
	return
target_obj.index_html(id_query,title_query,blurb_query,path_query,meta_type_query,REQUEST)  
   when it executes the a = self.getPhysicalRoot() instruction I get the
following error:
	Error Type: TypeError
        Error Value: call of non-function (type string)
If I print the type of the object with print type(self) I get the
following:

In 2.1 <extension class Acquisition.ImplicitAcquirerWrapper at 401a7234>
In 3.1 <extension class
Products.ModeratorResults.ModeratorResults.ModeratorResults at 84e9850>
	where ModeratorResults is my Object which is located in the file
Products/ModeratedResults.
I dont understand why it appears 3 times
(Products.ModeratorResults.ModeratorResults.ModeratorResults).


-- 
URL: http://www.terravista.pt/Enseada/1831
     http://accosta.planetaclix.pt
     http://students.fct.unl.pt/~anjc

PT is Portugal

                       #######
                       #  #  #
                       #" #" #
 Linux                ##vvvvv##
 Rules!              ##  vvv  ##
                    #          ##
                   ##           ##
                   ###          ###
                 +++#####       ##++
                ++++++#       #++++++
                +++++++#     #+++++++
                  +++++#######+++++
                    +++       +++
--------------7DDCDDA117F0F783C8424A0C
Content-Type: text/x-vcard; charset=us-ascii;
 name="anjc.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Antonio Costa
Content-Disposition: attachment;
 filename="anjc.vcf"

begin:vcard 
n:Costa;Antonio
tel;cell:+351933302511
x-mozilla-html:FALSE
url:http://www.terravista.pt/Enseada/1831
org:Faculdade de Ciencias e Tecnologia;SI
adr:;;;;;;
version:2.1
email;internet:anjc@fct.unl.pt
x-mozilla-cpt:;0
fn:Antonio Costa
end:vcard

--------------7DDCDDA117F0F783C8424A0C--