[Zope] problems getting absolute url of a newly created file
Maik Jablonski
maik.jablonski@uni-bielefeld.de
Tue, 29 Jan 2002 08:29:29 +0100
hi,
> I want to create a new file in a 'submissions' folder,
> and then send an email to someone that contains
> an absolute url that links to the newly created file.
>
> <dtml-call "submissions.manage_addFile( id='', file=file, title=article_title )">
you must submit an non-empty, non-existing ID for your file. look at the archives for methods on creating unique ID's and so on.
then you can use this ID to get the new fileobject in your folder and from there the absolute_url: _.getattr(yourFolder,id).absolute_url()
good luck, maik.
--
Maik Jablonski
Zentrum fuer Lehrerbildung
Universitaet Bielefeld
Germany