RE: [Zope] Howto access an Object not in the hierachy.
-----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: <dtml-with foo> <dtml-var Object1> </dtml-with> Is similar, Zope acquires 'foo', then sees object1. -Michel
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 ______________________________________________________
participants (2)
-
Felipe Alvarez Harnecker -
Michel Pelletier