[Zope] problems getting absolute url of a newly created file

Eckhoff, Damon damon@missouri.edu
Mon, 28 Jan 2002 15:57:55 -0600


Hey All:

I'm very new to zope and am not understanding how to do the following...

I've have a form that collects some information and a uploads a file.   =
Once the user hits submit 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.

Here is my dtml-method, submitFormAction:
>>>>>>>>>>
<dtml-var standard_html_header>

<dtml-call "submissions.manage_addFile( id=3D'', file=3Dfile, =
title=3Darticle_title )">

<dtml-sendmail mailhost=3D"MailHost">
to: <dtml-var managingEditor>
from: <dtml-var author_email>
subject: Article Submission ( <dtml-var article_title> )

Author Name: <dtml-var author_name>
Author Email: <dtml-var author_email>
Article Title: <dtml-var article_title>
File Link:  <dtml-var expr=3D"????????????.absolute_url()">
</dtml-sendmail>

<p>
Thanks for your Submission!!!
</p>

<dtml-var standard_html_footer>
<<<<<<<<<<

: where 'File Link:  <dtml-var expr=3D"????????????.absolute_url()">' =
should return an absolute link to the newly created file in the =
submissions folder.  My urge is to do something like =
"submissions.getFileById('file_id').absolute_url()"...  but...

This seems like a no brainer... I've tried several things... with, var, =
let but I'm still at a loss... what am I missing here?

I appreciate any help....


Damon.


=20