[Zope] Re: Python script returning link to local file

Dieter Maurer dieter at handshake.de
Wed Aug 13 21:46:45 EDT 2003


Michael Bleijerveld wrote at 2003-8-13 09:58 +0200:
 > It doesn't return a link to the (LocalFS) file.

You do not tell it to return a link. You tell it to return the object
itself.

When you want to return the URL, use an objects "absolute_url" method.
When a link is something else (for you), construct it (almost surely
from "absolute_url").


Dieter



More information about the Zope mailing list