Last change
on this file since 1 was
1,
checked in by myroslav, 18 years ago
|
Building directory structure
|
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> |
---|
11 | <tal:x replace="structure python:'<![CDATA['+res.getBody()+']]>'"/> |
---|
12 | </content:encoded> |
---|
13 | <tal:x tal:on-error="string:" |
---|
14 | define="files python:res.objectValues('ATAudio'); |
---|
15 | file python:files and files[0].getFile() or None;" |
---|
16 | condition="file"> |
---|
17 | <tal:define define="item_size file/get_size | python: file and len(file) or 0; |
---|
18 | content_type python:here.getFileFieldContentType(res);"> |
---|
19 | <enclosure tal:attributes="type content_type; |
---|
20 | url item_path; |
---|
21 | length item_size"/> |
---|
22 | </tal:define> |
---|
23 | </tal:x> |
---|
24 | </metal:block> |
---|
25 | </rss> |
---|
Note: See
TracBrowser
for help on using the repository browser.