docs/_templates/indexcontent.html | 4 ++-- moksha/api/widgets/feed/feed.py | 31 ++----------------------------- start-moksha | 1 + 3 files changed, 5 insertions(+), 31 deletions(-)
New commits: commit 58eaef45e250dda2a378c2aac67e50cbfb221d36 Author: Luke Macken lmacken@redhat.com Date: Mon Feb 16 00:29:14 2009 -0500
Ugh, hack around more setuptools nonsense
diff --git a/start-moksha b/start-moksha index 1c46b53..33c0461 100755 --- a/start-moksha +++ b/start-moksha @@ -10,6 +10,7 @@ if [ ! $VIRTUAL_ENV ]; then #virtualenv --no-site-packages tg2env source tg2env/bin/activate easy_install -U WebOb + easy_install -U SQLAlchemy easy_install -i http://www.turbogears.org/2.0/downloads/current/index tg.devtools pushd moksha/widgetbrowser; python setup.py develop; popd easy_install "tw.jquery==dev"
commit 4b592a658555563c182cda329a4b4a6a4cccd1ff Author: Luke Macken lmacken@redhat.com Date: Mon Feb 16 00:28:49 2009 -0500
Some more documentation tweaks
diff --git a/docs/_templates/indexcontent.html b/docs/_templates/indexcontent.html index 73cfca2..38a630d 100644 --- a/docs/_templates/indexcontent.html +++ b/docs/_templates/indexcontent.html @@ -30,10 +30,10 @@ <p><strong>Indices and tables:</strong></p> <table class="contentstable" align="center"><tr> <td width="50%"> - <p class="biglink"><a class="biglink" href="{{ pathto("modindex") }}">Global Module Index</a><br/> - <span class="linkdescr">quick access to all modules</span></p> <p class="biglink"><a class="biglink" href="{{ pathto("genindex") }}">General Index</a><br/> <span class="linkdescr">all functions, classes, terms</span></p> + <p class="biglink"><a class="biglink" href="{{ pathto("modindex") }}">Global Module Index</a><br/> + <span class="linkdescr">quick access to all modules</span></p> </td><td width="50%"> <p class="biglink"><a class="biglink" href="{{ pathto("search") }}">Search page</a><br/> <span class="linkdescr">search this documentation</span></p> diff --git a/moksha/api/widgets/feed/feed.py b/moksha/api/widgets/feed/feed.py index b78337a..3818bc1 100644 --- a/moksha/api/widgets/feed/feed.py +++ b/moksha/api/widgets/feed/feed.py @@ -33,39 +33,12 @@ feed_storage = None feed_cache = None
class Feed(Widget): - """ A powerful Feed object. + """ + The Moksha Feed object.
A Feed is initialized with an id and a url, and automatically handles the fetching, parsing, and caching of the data.
- Ways of creating utilizing the Feed widget: - - 0) Specifying the URL render-time - - feed = Feed() - feed(url='http://foo.com/feed.xml') - - 1) Subclassing - - class MyFeed(Feed): - url = 'http://foo.com/feed.xml' - - myfeed = MyFeed() - myfeed() # renders the widget, usually done in the template - - 2) As ToscaWidget children - - class MyWidget(Widget): - myfeedurl = 'http://foo.com/feed.xml' - children = [Feed('myfeed', url=myfeedurl)] - template = "${c.myfeed()}" - - 3) As a generator - - feed = Feed(url='http://foo.com/feed.xml') - for entry in feed.iterentries(): - print entry.title - """ url = None template = 'mako:moksha.api.widgets.feed.templates.feed_home'
moksha-commits@lists.fedorahosted.org