Attachment 'theme-__init__.py.patch'

Download

   1 --- __init__.py	2009-01-07 01:30:29.000000000 +0100
   2 +++ __init__.py.new	2009-03-23 04:07:21.000000000 +0100
   3 @@ -828,11 +828,16 @@
   4              Currently rss is broken on plain Python, and works only when
   5              installing PyXML. Return true if PyXML is installed.
   6          """
   7 +
   8 +        request = self.request
   9 +
  10          if not rss_supported:
  11              return False
  12          return page.page_name == u'RecentChanges' or \
  13 -           page.page_name == self.request.getText(u'RecentChanges')
  14 +           page.page_name == self.request.getText(u'RecentChanges') or \
  15 +           request.getPragma('rss') == u'on'
  16  
  17 +    
  18      def rsshref(self, page):
  19          """ Create rss href, used for rss button and head link
  20  
  21 @@ -840,8 +845,15 @@
  22          @return: rss href
  23          """
  24          request = self.request
  25 -        url = page.url(request, querystr={
  26 +
  27 +        if request.getPragma('rss') == u'on':
  28 +            url = page.url(request, querystr={
  29 +                'action': 'rss_rc', 'ddiffs': '1', 'unique': '1', 'local': '1' }, 
  30 +                escape=0)
  31 +        else:
  32 +            url = page.url(request, querystr={
  33                  'action': 'rss_rc', 'ddiffs': '1', 'unique': '1', }, escape=0)
  34 +
  35          return url
  36  
  37      def rsslink(self, d):

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2009-03-23 03:00:00, 1.7 KB) [[attachment:rss_rc-1.8.py.patch]]
  • [get | view] (2009-03-27 03:43:58, 1.7 KB) [[attachment:rss_rc-1.9.py.patch]]
  • [get | view] (2009-03-23 03:08:58, 1.2 KB) [[attachment:theme-__init__.py.patch]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.