[Zope] Stupid (I'm sure) newbie question...getting objects not in your namespace

Maik Jablonski maik.jablonski@uni-bielefeld.de
Tue, 16 Apr 2002 23:57:47 +0200


On Tue, 16 Apr 2002 16:38:59 -0500 "Andy Akins" <andy@leonidae.org> wrote:

> Is there a way to get an object that is not in the direct namespace that you
> are in?
> 
>     root-+--- Fie -+--- Fie1
>      |         |
>      |         |
>      |         +--- Fie2
>      |
>      +--- Fum -+--- Fum1
> 
> And you are in folder Fum1.....what is the syntax to call, for example, a 
> DTML Method in Fie2? Can it be done?

hi,

to call MethodToCall in Fie2 with yourOwnParameter try this:

<dtml-var "Fie.Fie2.MethodToCall(None,_,yourOwnParamter='hello world')">

or

<dtml-call "Fie.Fie2.MethodToCall(None,_,yourOwnParamter='hello world')">

depending if you need an output or not.

greetings, maik.