[Zope] How can I examine an property of an object from the other object in the other tree?
ÀÌ°ü¼ö(LEE Kwan Soo)
kslee@plaza1.snu.ac.kr
Tue, 17 Aug 1999 01:35:01 +0900
Thank you for your reply with apology for non-plain text mail & varous typos.
After a shower and your reply, I can refine my question.
As you wrote, <!--#var "english.members.test.docTest.TR"--> works OK.
(docTest is DTML Document and TR is its property)
But only as far as I *hard code* into every DTML Document such a line(yes there is a way to hard code such a line into every DTML Document if I have to but it seems too foolish and complicated).
Is there a way to write *ONE* DTML code and use it in every DTML Document?
I wrote in the root folder an one liner DTML method 'isTRed' which is
<!--#var "'english.'+ _.string.join( _.string.split(URL0, '/')[4:], '.')+'.TR'" -->
It gives the string english.members.test.docTest.TR
when called in the DTML Document /korean/members/test/docTest as <!--#var isTRed-->.
But <!--#var "isTRed" --> gives the source of isTRed method.
And <!--#var "_[isTRed]"--> gives attribute error.
<!--#var "_['isTRed']"--> gives the string english.members.test.docTest.TR as might be
expected.
Please don't laugh at my silliness, : (.
Any revelation?
TIA
LEE Kwan Soo.