Changeset 291
- Timestamp:
- 03/04/06 14:25:49
- Files:
-
- qRSS2Syndication/branches/itunes-atvideo-support/skins/qrss2syndication/RSS2.pt (modified) (2 diffs)
- qRSS2Syndication/branches/itunes-atvideo-support/skins/qrss2syndication/ataudio_item.pt (modified) (2 diffs)
- qRSS2Syndication/branches/itunes-atvideo-support/skins/qrss2syndication/atvideo_item.pt (modified) (1 diff)
- qRSS2Syndication/branches/itunes-atvideo-support/skins/qrss2syndication/blogentry_item.pt (modified) (1 diff)
- qRSS2Syndication/branches/itunes-atvideo-support/skins/qrss2syndication/document_item.pt (added)
- qRSS2Syndication/branches/itunes-atvideo-support/skins/qrss2syndication/getMemberEmail.py (modified) (1 diff)
- qRSS2Syndication/branches/itunes-atvideo-support/skins/qrss2syndication/getSyndicatableContent.py (modified) (1 diff)
- qRSS2Syndication/branches/itunes-atvideo-support/skins/qrss2syndication/mediacoopaudio_item.pt (modified) (1 diff)
- qRSS2Syndication/branches/itunes-atvideo-support/skins/qrss2syndication/mediacoopvideo_item.pt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
qRSS2Syndication/branches/itunes-atvideo-support/skins/qrss2syndication/RSS2.pt
r290 r291 37 37 <tal:block define="macros nocall: python:here.getItemMacros(res.portal_type); 38 38 item_path python: res.absolute_url(); 39 item_path python: res.portal_type=='ATAudio' and item_path+'/file_download/'+res.getId() or item_path;40 res_creator res/Creator">39 res_creator here.portal_membership.getMemberInfo(res.Creator()); 40 creator python: res_creator['fullname']+' '+res_creator['email']"> 41 41 <item> 42 42 <title tal:content="res/title_or_id"></title> … … 44 44 <description tal:content="res/Description"> 45 45 </description> 46 <author tal:content=" python:here.portal_membership.getMemberInfo(res_creator)['fullname']"></author>46 <author tal:content="creator"></author> 47 47 <tal:repeat repeat="subj res/Subject"> 48 48 <category tal:content="subj"> qRSS2Syndication/branches/itunes-atvideo-support/skins/qrss2syndication/ataudio_item.pt
r290 r291 5 5 xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" > 6 6 <metal:block define-macro="item"> 7 <tal:define define="file res/getFile; 8 item_size file/get_size | python: file and len(file) or 0; 9 content_type python:here.getFileFieldContentType(res); 10 "> 7 <tal:define define="item_size item/getFileSize | python: 0; 8 content_type res/getMimeType;"> 11 9 <enclosure 12 10 tal:attributes="type content_type; … … 14 12 length item_size"/> 15 13 <tal:block condition="python: syInfo['enable_itunes']"> 16 <itunes:duration tal:content="res/getLengthString"></itunes:duration>14 <itunes:duration tal:content="res/getLengthString"></itunes:duration> 17 15 </tal:block> 18 16 </tal:define> qRSS2Syndication/branches/itunes-atvideo-support/skins/qrss2syndication/atvideo_item.pt
r290 r291 4 4 xmlns:metal="http://xml.zope.org/namespaces/metal" > 5 5 <metal:block define-macro="item"> 6 <!-- todo: check for apropriate get size of file method (expression res/getFile can kill zope) --> 6 7 <tal:define define="file res/getFile; 7 8 item_size file/get_size | python: file and len(file) or 0; qRSS2Syndication/branches/itunes-atvideo-support/skins/qrss2syndication/blogentry_item.pt
r290 r291 8 8 <category tal:content="tag"></category> 9 9 </tal:repeat> 10 <content:encoded tal:content="structure res/render_body"> </content:encoded>10 <content:encoded tal:content="structure res/render_body"> </content:encoded> 11 11 <tal:x tal:on-error="string:" 12 12 define="files python:res.objectValues('ATAudio'); qRSS2Syndication/branches/itunes-atvideo-support/skins/qrss2syndication/getMemberEmail.py
r290 r291 8 8 ##title= 9 9 ## 10 11 10 memberlist = context.portal_membership.searchForMembers(REQUEST=None, name=MemberId) 12 res = '' 13 for member in memberlist: 14 if member.id == MemberId: 15 res = member.getProperty('email',None) 11 res = None 12 if memberlist: 13 for member in memberlist: 14 if member.id == MemberId: 15 res = member 16 break 16 17 return res qRSS2Syndication/branches/itunes-atvideo-support/skins/qrss2syndication/getSyndicatableContent.py
r290 r291 11 11 if not obj: 12 12 obj = context 13 if hasattr(context,'synContentValues') :13 if hasattr(context,'synContentValues') or context.portal_type=='Topic': 14 14 count = context.portal_syndication.getMaxItems(obj) 15 15 res = context.portal_syndication.getSyndicatableContent(obj) 16 # has to check and cut number of items to be displayed 17 # to prevent feed bloat 16 18 count = count<len(res) and count or len(res) 17 19 res = res[:count] qRSS2Syndication/branches/itunes-atvideo-support/skins/qrss2syndication/mediacoopaudio_item.pt
r290 r291 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) --> 7 8 <tal:define define="file res/getFile; 8 9 item_size file/get_size | python: file and len(file) or 0; qRSS2Syndication/branches/itunes-atvideo-support/skins/qrss2syndication/mediacoopvideo_item.pt
r290 r291 4 4 xmlns:metal="http://xml.zope.org/namespaces/metal" > 5 5 <metal:block define-macro="item"> 6 <!-- todo: check for apropriate get size of file method (expression res/getFile can kill zope) --> 6 7 <tal:define define="file res/getFile; 7 8 item_size file/get_size | python: file and len(file) or 0;
