problems getting absolute url of a newly created file
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='', file=file, title=article_title )"> <dtml-sendmail mailhost="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="????????????.absolute_url()"> </dtml-sendmail> <p> Thanks for your Submission!!! </p> <dtml-var standard_html_footer> <<<<<<<<<< : where 'File Link: <dtml-var expr="????????????.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.
participants (1)
-
Eckhoff, Damon