Changeset 832

Show
Ignore:
Timestamp:
06/07/06 18:14:57 (2 years ago)
Author:
GraemeWorthy
Message:

RssGetMacro:

Added better comment block at the top
removed all print statements with comments to #print, it was messing up apache.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • rssgetmacro/0.9/RSSget.py

    r831 r832  
    1 """Example macro.""" 
     1""" 
     2A Simple RSS News Retriever: Returns the content of an rss2 feed, parsed and pretty. 
     3 
     4Usage: [[RSSget(http://www.example.com/feed.xml)]] 
     5 
     6This edition: 
     7    * caches fetched feeds to /tmp/tracrss 
     8    * returns the feed as a <dl>  
     9 
     10Customisation: 
     11    * RESULTS_FULL = 1; < number of results for which descriptions are displayed 
     12    * RESULTS_TOTAL = 5; < total number of results, titles of posts are displayed 
     13    * CACHE_INTERVAL = 1500 < time till feed is rechecked.  
     14 
     15Known Issues: Doesn't parse atom or rss or rdf. This is a one trick pony 
     16 
     17""" 
     18 
    219import urllib 
    320import time 
     
    926from xml.dom import minidom 
    1027from trac.util import escape 
    11  
    12 ## Usage: [[RSSget(http://www.example.com/feed.xml)]] 
    13 ## 
    14  
    1528 
    1629CACHE_DIR = "/tmp";