[ZPT] what is the TAL equivalent of this DTML code!!

vaibhav uprety uprety_vaibhav at yahoo.co.in
Tue Jul 20 00:53:37 EDT 2004


Dear robert,
 
Thanks a lot for your help!! the TAL code you sent me worked but it CAN only display the name of the files that are in the folder and not the file size and the date the file was created.
 
I get the following error message.
 
Error Type
AttributeError
 
Error Name
file_size

can u help me with this error.
 
Warm Regards
 
Vaibhav Uprety
RN Bristow <Robert.Bristow at bristol.ac.uk> wrote:
Vaibhav

Something like:

tal:condition="not:file_obs">There are no Papers

tal:condition="file_obs">

Name
Size
Modification Date


tal:content="file_ob/title_or_id">__file_ob__title_or_id_

22K
2001/09/17



Does the job for me

Hope that helps

Robert

Robert Bristow, Information Services Manager
Graduate School of Education, University of Bristol
35 Berkeley Square, Bristol, BS8 1JA, UK
+44 (0) 117 928 7029, robert.bristow at bristol.ac.uk
http://www.bristol.ac.uk/education

On Thu, 15 Jul 2004, [iso-8859-1] vaibhav uprety wrote:

> Hi
>
> i have written this DTML method for showing the files in a folder. This method works fine. please help me to implement this in form of a page template.
>
> Here is the DTML method
> ---------------------------------------------------------------------------------------------------------
> 

> 
> 

> 
> 
> ">
> 

> 
> 
> 
> 
NO DOCUMENTS FOUND
> 
> ---------------------------------------------------------------------------------------------------------
>
> Thanks in advance
>
> Vaibhav Uprety
>
> Yahoo! India Careers: Over 65,000 jobsonline.
Yahoo! India Careers: Over 65,000 jobsonline.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zpt/attachments/20040720/828efbcd/attachment.htm


More information about the ZPT mailing list