[Zope] Accessing Properties from dtml
Oliver Erlewein
erlewein@gmx.de
Tue, 18 Sep 2001 18:06:03 +0200 (MEST)
Hi
I'm trying to access properties from dtml. Something like <dtml-var
FolderA.FolderB.ItemA.PropertyA> works just fine. Now I want to use that
functionality in a loop (simmilar):
<dtml-in "objectItems()">
<dtml-var "'FolderA.FolderB.' + _['sequence-item'] + '.PropertyA'"><br>
</dtml-in>
would give me:
FolderA.FolderB.ItemA.PropertyA
FolderA.FolderB.ItemB.PropertyA
FolderA.FolderB.ItemC.PropertyA
...
But I want the content so I write:
<dtml-in "objectItems()">
<dtml-var "_['FolderA.FolderB.' + _['sequence-item'] + '.PropertyA']"><br>
</dtml-in>
And that gives me a nice error message, telling me, that the object does not
exist. Any ideas on what I'm doing wrong? It's probably quite easy (and a
standard problem) but I'm not able to see the soliution anymore!
Thanx in advance!
Oliver Erlewein
SQS AG
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net