source: products/qRSS2Syndication/branches/Plone3.1/skins/qrss2syndication/RSS2.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: 4.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:metal="http://xml.zope.org/namespaces/metal" 
5     xmlns:content="http://purl.org/rss/1.0/modules/content/"
6     xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
7     tal:define="results python:here.getSyndicatableContent();"
8     tal:on-error="nothing">
9<tal:x define="dummy python:request.RESPONSE.setHeader('Content-Type', 'text/xml');" />
10    <channel tal:define="author python:here.getObjectCreator(here.Creator());
11                         author_email python:author and author.getProperty('email','') or '';
12                         author_fullname python:author and author.getProperty('fullname','') or '';
13                         syInfo python:here.getSynProp();
14                         itunesEnabled python: syInfo['enable_itunes']">
15        <title tal:define="portal_title here/portal_properties/title;
16            here_title here/title_or_id;
17            template_title template/title_or_id;
18            here_title python:test(portal_title != here_title, here_title, template_title)"
19            tal:content="string:$portal_title - $here_title">Title of page</title>
20        <link tal:content="here/absolute_url"></link>
21        <description tal:content="here/Description"></description>
22        <language>en-us</language>
23        <generator>Plone CMS</generator>
24        <author tal:condition="author_fullname"
25                tal:content="author_fullname"></author>
26
27        <tal:block condition="itunesEnabled">
28        <ttl>240</ttl>
29        <itunes:author tal:condition="author_fullname" tal:content="author_fullname"></itunes:author>
30        <itunes:explicit tal:content="python:test(syInfo['itunes_explicit'],'yes','no')"></itunes:explicit>
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>
34        </itunes:owner>
35        <itunes:image href=""
36                      tal:condition="python:syInfo['itunes_image_url']"
37                      tal:attributes="href python:syInfo['itunes_image_url']"  />
38        <itunes:subtitle tal:condition="here/longDescription" tal:content="here/Description"></itunes:subtitle>
39        <itunes:summary tal:condition="here/longDescription|nothing" tal:content="here/longDescription"></itunes:summary>
40        </tal:block>
41
42        <tal:block repeat="res results">
43            <tal:block define="macros nocall: python:here.getItemMacros(res.portal_type);
44                               item_path python: res.absolute_url();
45                               item_creator python:here.getObjectCreator(res.Creator());
46                               item_creator python:item_creator and '%s (%s)' % (item_creator.getProperty('fullname',''),item_creator.getProperty('email','')) or ''">
47                  <item>
48                      <title tal:content="res/title_or_id"></title>
49                      <link tal:content="item_path"></link>
50                      <description tal:content="res/Description">
51                      </description>
52                      <tal:block condition="itunesEnabled">
53                        <itunes:subtitle tal:condition="res/longDescription|nothing" tal:content="res/Description"></itunes:subtitle>
54                        <itunes:summary tal:condition="res/longDescription|nothing" tal:content="res/longDescription"></itunes:summary>
55                      </tal:block>
56                      <author tal:condition="item_creator"
57                              tal:content="item_creator"></author>
58                      <tal:repeat repeat="subj res/Subject">
59                          <category tal:content="subj">
60                          </category>
61                      </tal:repeat>
62                      <pubDate tal:content="structure python: DateTime(res.Date()).rfc822()"> </pubDate>
63                      <metal:block use-macro="macros"/>
64                  </item>
65            </tal:block>
66        </tal:block>
67    </channel>
68</rss>
69
Note: See TracBrowser for help on using the repository browser.