source: products/qRSS2Syndication/branches/Plone3.1/skins/qrss2syndication/blogentry_item.pt @ 1591

Last change on this file since 1591 was 126, checked in by fenix, 18 years ago

add docstring to all classes and functions

File size: 1.1 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<rss version="2.0"
3     xmlns:tal="http://xml.zope.org/namespaces/tal"
4     xmlns:content="http://purl.org/rss/1.0/modules/content/"
5     xmlns:metal="http://xml.zope.org/namespaces/metal" >
6<metal:block define-macro="item">
7     <tal:repeat repeat="tag res/EntryTag">
8        <category tal:content="tag"></category>
9     </tal:repeat>       
10        <content:encoded tal:content="structure res/render_body">  </content:encoded>
11     <tal:x tal:on-error="string:"
12           define="files python:res.objectValues('ATAudio');
13                   file python:files and files[0].getFile() or None;"
14           condition="file">
15        <tal:define define="item_size file/get_size | python: file and len(file) or 0;
16                            content_type  python:here.getFileFieldContentType(res);">
17          <enclosure tal:attributes="type content_type;
18                                     url item_path;
19                                     length item_size"/>
20        </tal:define>
21      </tal:x>
22</metal:block>
23</rss>
Note: See TracBrowser for help on using the repository browser.