Changeset 295

Show
Ignore:
Timestamp:
03/06/06 06:11:11
Author:
chervol
Message:

RSS2.pt updated with author conditions

Files:

Legend:

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

    r294 r295  
    66     xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" 
    77     tal:define="results python:here.getSyndicatableContent();" 
    8      tal:on-error="nothing">      
     8     tal:on-error="nothing"> 
    99<tal:x define="dummy python:request.RESPONSE.setHeader('Content-Type', 'text/xml');" /> 
    1010    <channel tal:define="author python:here.getObjectCreator(here.Creator()); 
    11                          author_email python:author.getProperty('email','')
    12                          author_fullname python:author.getProperty('fullname','')
     11                         author_email python:author and author.getProperty('email','') or ''
     12                         author_fullname python:author and author.getProperty('fullname','') or ''
    1313                         syInfo python:here.getSynProp(); 
    1414                         itunesEnabled python: syInfo['enable_itunes']"> 
     
    2424        <author tal:condition="author_fullname"  
    2525                tal:content="author_fullname"></author> 
    26          
     26 
    2727        <tal:block condition="itunesEnabled"> 
    2828        <ttl>240</ttl> 
    29         <itunes:author tal:content="author_fullname"></itunes:author> 
     29        <itunes:author tal:condition="author_fullname" tal:content="author_fullname"></itunes:author> 
    3030        <itunes:explicit tal:content="python:test(syInfo['itunes_explicit'],'yes','no')"></itunes:explicit> 
    31         <itunes:owner
    32            <itunes:name tal:content="author_fullname"></itunes:name> 
    33            <itunes:email tal:content="author_email"></itunes:email> 
     31        <itunes:owner tal:condition="author"
     32           <itunes:name tal:condition="author_fullname" tal:content="author_fullname"></itunes:name> 
     33           <itunes:email tal:condition="author_email" tal:content="author_email"></itunes:email> 
    3434        </itunes:owner> 
    3535        <itunes:image href=""  
     
    4242                               item_path python: res.absolute_url(); 
    4343                               item_creator python:here.getObjectCreator(res.Creator()); 
    44                                item_creator python: '%s %s' % (item_creator.getProperty('fullname',''),item_creator.getProperty('email',''))"> 
     44                               item_creator python:item_creator and '%s %s' % (item_creator.getProperty('fullname',''),item_creator.getProperty('email','')) or ''"> 
    4545                  <item> 
    4646                      <title tal:content="res/title_or_id"></title>