[Zope] Howto access an Object not in the hierachy.

Felipe Alvarez Harnecker felipe.alvarez@qlsoft.cl
Thu, 2 Dec 1999 15:20:12 -0300 (CLST)


Michel Pelletier writes:
 > > -----Original Message-----
 > > From: Felipe Alvarez Harnecker [mailto:felipe@qlsoft.cl]
 > > Sent: Thursday, December 02, 1999 11:37 AM
 > > To: zope@zope.org
 > > Subject: [Zope] Howto access an Object not in the hierachy.
 > > 
 > > 
 > > 
 > > Suppose this scenario
 > > 
 > > 
 > >    /--|
 > >       |-foo-|
 > >       |     |- DTML Object 1
 > >       |
 > >       |-bar-|
 > >       |     |- DTML Object 2
 > > 
 > > 
 > > 
 > > I need to access Object1 from Object2.
 > > 
 > > Something like     <dtml-var foo.Object1> in Object 2
 > 
 > You're close, <dtml-var "foo.Object1"> will work (because it's a python
 > expression with the "", and Zope acquires 'foo') or:
 > 

This does not expand for its side efects. Display something like
source code.


 > <dtml-with foo>
 >  <dtml-var Object1>
 > </dtml-with>
 > 

This works fine.

Thanks.

-- 
______________________________________________________

Felipe Alvarez Harnecker.  QlSoftware.
		
Tel. 09.874.60.17  e-mail: felipe.alvarez@qlsoft.cl

Potenciado por Ql/Linux  http://www.qlsoft.cl
______________________________________________________