[Zope] "ElementWithAttributes" in result of absolute_url() (urgent)
Dieter Maurer
dieter@handshake.de
Thu, 3 Jan 2002 21:31:52 +0100
Peter Bengtsson writes:
> I have created a python product which is a wrapper to the DTMLDocument class.
> I do overwrite the getProperty method because when properties are asked for
> from the object I pick the right ones depending on some other variables.
> Everything is working nicely except the absolute_url() method (which I don't
> override).
>
>
> Doing...:
> object = context.contentcontainerObject
> print object.absolute_url()
> print object.title_or_id()
> return printed
>
> Expected result:
> http://zigurat:8180/Projects/galdrionweb/omgaldrion/contentcontainerObject
> "The correct Title"
>
> Actual result:
> http://zigurat:8180/Projects/galdrionweb/omgaldrion/ElementWithAttributes
> "The correct Title"
Looks as if your instance had no id (which is called "__name__" for
DTML objects.
Dieter