Changeset 304
- Timestamp:
- 03/07/06 08:17:46
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
qRSS2Syndication/branches/itunes-atvideo-support/skins/qrss2syndication/ataudio_item.pt
r303 r304 5 5 xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" > 6 6 <metal:block define-macro="item"> 7 <!-- todo: check for apropriate get size of file method (expression res/getFile can kill zope) --> 8 <tal:define define="file res/getFile; 9 item_size file/get_size | python: file and len(file) or 0; 10 content_type python:here.getFileFieldContentType(res); 11 "> 7 <tal:define define="item_size item/getFileSize | python: 0; 8 content_type res/getMimeType;"> 12 9 <enclosure 13 10 tal:attributes="type content_type; … … 15 12 length item_size"/> 16 13 <tal:block condition="itunesEnabled"> 17 <itunes:duration tal:content="res/getLengthString"></itunes:duration>14 <itunes:duration tal:content="res/getLengthString"></itunes:duration> 18 15 </tal:block> 19 16 </tal:define> qRSS2Syndication/branches/itunes-atvideo-support/skins/qrss2syndication/mediacoopaudio_item.pt
r303 r304 5 5 xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" > 6 6 <metal:block define-macro="item"> 7 <!-- todo: check for apropriate get size of file method (expression res/getFile can kill zope) --> 8 <tal:define define="file res/getFile; 9 item_size file/get_size | python: file and len(file) or 0; 10 content_type python:here.getFileFieldContentType(res); 11 "> 7 <tal:define define="item_size item/getFileSize | python: 0; 8 content_type res/getMimeType;"> 12 9 <enclosure 13 10 tal:attributes="type content_type;
