FYI: Found a solution!!!! I found out, that I have to render the variable like this: <dtml-var _.getitem('id',1)> *the 1 means 'render', 0 'don't render'* And so the variable shows the real id 'mydocument.html'
-----Ursprüngliche Nachricht----- Von: Breitenreicher, Marc [SMTP:Marc.Breitenreicher@friatec.de] Gesendet am: Montag, 25. Februar 2002 08:36 An: 'zope@zope.org' Betreff: [Zope] Problems with Object-IDs
Hi Community,
I've got a problem with finding out IDs of objects.
What I want to do is this: I want to search in a directory, if a special object-id is already used.
The code is: <dtml-in "objectItems(['DTML Document'])"> <dtml-if "id=='mydocument.html' "> and so on
But the id I get here, is not the id as it is shown in the management-view (for example 'mydocument.html'). Here, the id is something like 'Python Method object at 0x841d1c8'
Can anyone tell me, how I can get the 'real' id 'mydocument.html'?
Thank for your help in advance.
Marc
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )