[Zope] How can I examine an property of an object from the other object in the other tree?

Anthony Pfrunder s341625@student.uq.edu.au
Tue, 17 Aug 1999 15:04:15 +1000 (GMT+1000)


On Tue, 17 Aug 1999, [ks_c_5601-1987] ÀÌ°ü¼ö wrote:

> Forgive this nagging newbie.
> The situation:
> <!--#var isTRed--> just gives the *string* english.members.test.docTest.TR when called in the 
> DTML Document /korean/members/test/docTest  not the *value* of english.members.test.docTest.TR (TR is a string property of docTest DTML Document).
> So, it does not work.

I assume that you have a variable, isTRed, which contains the value
"english.members.test.docTest.TR" and you wish to call that to return the
value of such.

A shortcut is to use python.  Hence, try:

	<dtml-var "call(isTRed)">

This (should, I hope) treat the contents of isTRed as a function which is
then called and the result returned to you.

Cheers,

Anthony Pfrunder