Changeset 303

Show
Ignore:
Timestamp:
03/07/06 04:54:02
Author:
wreutz
Message:

reapplied the "typo" in RSS2.pt as it was meant this way :-)
copied code from mediacoopaudio_item.pt to ataudio_item.pt to be in sync
added mediacoopimage_item.pt

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • qRSS2Syndication/branches/itunes-atvideo-support/skins/qrss2syndication/RSS2.pt

    r302 r303  
    3636                      tal:condition="python:syInfo['itunes_image_url']" 
    3737                      tal:attributes="href python:syInfo['itunes_image_url']"  /> 
    38         <itunes:subtitle tal:condition="here/Description" tal:content="here/Description"></itunes:subtitle> 
     38        <itunes:subtitle tal:condition="here/longDescription" tal:content="here/Description"></itunes:subtitle> 
    3939        <itunes:summary tal:condition="here/longDescription|nothing" tal:content="here/longDescription"></itunes:summary> 
    4040        </tal:block> 
     
    5151                      </description> 
    5252                      <tal:block condition="itunesEnabled"> 
    53                         <itunes:subtitle tal:condition="res/Description|nothing" tal:content="res/Description"></itunes:subtitle> 
     53                        <itunes:subtitle tal:condition="res/longDescription|nothing" tal:content="res/Description"></itunes:subtitle> 
    5454                        <itunes:summary tal:condition="res/longDescription|nothing" tal:content="res/longDescription"></itunes:summary> 
    5555                      </tal:block> 
  • qRSS2Syndication/branches/itunes-atvideo-support/skins/qrss2syndication/ataudio_item.pt

    r302 r303  
    55     xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" > 
    66<metal:block define-macro="item"> 
    7    <tal:define define="item_size item/getFileSize | python: 0; 
    8                        content_type  res/getMimeType;"> 
     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                       "> 
    912           <enclosure  
    1013               tal:attributes="type content_type; 
     
    1215                               length item_size"/> 
    1316          <tal:block condition="itunesEnabled"> 
    14                <itunes:duration tal:content="res/getLengthString"></itunes:duration> 
     17                       <itunes:duration tal:content="res/getLengthString"></itunes:duration> 
    1518          </tal:block> 
    1619  </tal:define>