AW: [Zope] Problems with Object-IDs
Breitenreicher, Marc
Marc.Breitenreicher@friatec.de
Mon, 25 Feb 2002 10:06:45 +0100
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=FCngliche 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
>=20
> Hi Community,
>=20
> I've got a problem with finding out IDs of objects.
>=20
> What I want to do is this:
> I want to search in a directory, if a special object-id is already =
used.
>=20
> The code is:
> <dtml-in "objectItems(['DTML Document'])">
> <dtml-if "id=3D=3D'mydocument.html' ">
> and so on
>=20
> 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'
>=20
>=20
> Can anyone tell me, how I can get the 'real' id 'mydocument.html'?
>=20
> Thank for your help in advance.
>=20
> Marc
>=20
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -=20
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )