Edgewall Software

Ticket #3167: rss.patch

File rss.patch, 2.6 KB (added by eblot, 5 years ago)

Proposed patch against r3813 to support RSS guids

  • trac/Timeline.py

     
    165165                     'author': author or 'anonymous', 
    166166                     'date': format_date(date), 
    167167                     'time': format_time(date, '%H:%M'), 
     168                     'dateuid': int(date), 
    168169                     'message': message} 
    169170 
    170171            if format == 'rss': 
  • templates/timeline_rss.cs

     
    2626    /if ?> 
    2727    <pubDate><?cs var:event.date ?></pubDate> 
    2828    <link><?cs var:event.href ?></link> 
     29    <guid isPermaLink="true"><?cs var:event.href ?>/<?cs  
     30          var:event.dateuid ?></guid> 
    2931    <description><?cs var:event.message ?></description> 
    3032   </item><?cs 
    3133  /each ?> 
  • templates/report_rss.cs

     
    3535   <pubDate><?cs var:pubdate ?></pubDate> 
    3636   <title><?cs var:'#' + id + ': ' + title ?></title>    
    3737   <link><?cs var:link ?></link> 
     38   <guid isPermaLink="true"><?cs var:link ?></guid> 
    3839   <description><?cs var:descr ?></description> 
    3940   <category>Report</category> 
    4041  </item><?cs 
  • templates/log_rss.cs

     
    1919     <pubDate><?cs var:change.date ?></pubDate> 
    2020     <title>Revision <?cs var:item.rev ?>: <?cs var:change.shortlog ?></title> 
    2121     <link><?cs var:base_host ?><?cs var:item.restricted_href ?></link> 
     22     <guid isPermaLink="true"><?cs var:base_host ?><?cs  
     23           var:item.restricted_href ?></guid> 
    2224     <description><?cs var:change.message ?></description> 
    2325     <category>Log</category> 
    2426    </item><?cs  
  • templates/ticket_rss.cs

     
    2020    <link><?cs var:base_host ?><?cs var:ticket.href ?><?cs  
    2121     if:change.cnum ?>#comment:<?cs var:change.cnum ?><?cs 
    2222     /if ?></link> 
     23    <guid isPermaLink="true"><?cs var:base_host ?><?cs var:ticket.href ?><?cs  
     24     if:change.cnum ?>#comment:<?cs var:change.cnum ?><?cs 
     25     /if ?></guid> 
    2326    <description> 
    2427    <?cs if:len(change.fields) ?> 
    2528    &lt;ul&gt;<?cs