From cf76d25b2e4196dd0b77e188695f71d4a6439e6b Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Thu, 15 Apr 2010 21:05:41 +0200 Subject: Release 1.1. Added links for favorites articles on the main page. --- README | 16 +++++++++++++--- feedgetter.py | 4 ++-- pyAggr3g470r.py | 31 ++++++++++++++++++++----------- utils.py | 4 ++-- 4 files changed, 37 insertions(+), 18 deletions(-) diff --git a/README b/README index 8884663c..6cc28c13 100644 --- a/README +++ b/README @@ -5,9 +5,11 @@ based on CherryPy. Articles are stored in a SQLite base. ==== Features ==== -* notification by e-mail -* language detection -* TuxDroid support (for the notification of unread articles) +* notification of new articles by e-mail for selected feeds; +* mark or unmark an article as favorites; +* share an article on Google Buzz, del.icio.us, Digg, reddit, Scoopeo and Blogmarks; +* language detection and search articles by language; +* TuxDroid support (for the notification of unread articles). @@ -18,8 +20,14 @@ based on CherryPy. Articles are stored in a SQLite base. * CherryPy (version 3 and up) * sqlite + === Optional module === These modules are not required but provides better features. +These modules are: +* oice.langdet +* matplotlib +* gamin. +If you want to install these modules: == Language detection == Name: oice.langdet @@ -27,6 +35,8 @@ Enable the detection of the language of articles. Installation: http://pypi.python.org/pypi/oice.langdet/ +Download the archive, decompress, go to the folder and type: +python setup.py install == Histogram == diff --git a/feedgetter.py b/feedgetter.py index 2fb43bc5..3f44fdcb 100755 --- a/feedgetter.py +++ b/feedgetter.py @@ -4,8 +4,8 @@ from __future__ import with_statement __author__ = "Cedric Bonhomme" -__version__ = "$Revision: 0.8 $" -__date__ = "$Date: 2010/03/01 $" +__version__ = "$Revision: 0.9 $" +__date__ = "$Date: 2010/04/15 $" __copyright__ = "Copyright (c) 2010 Cedric Bonhomme" __license__ = "GPLv3" diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index 661d3251..c95d90a7 100755 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -2,8 +2,8 @@ #-*- coding: utf-8 -*- __author__ = "Cedric Bonhomme" -__version__ = "$Revision: 1.0 $" -__date__ = "$Date: 2010/03/01 $" +__version__ = "$Revision: 1.1 $" +__date__ = "$Date: 2010/04/15 $" __copyright__ = "Copyright (c) 2010 Cedric Bonhomme" __license__ = "GPLv3" @@ -75,10 +75,12 @@ class Root: html += """
\n""" if self.articles: - html += """\n""" % \ - sum([len([article for article in self.articles[feed_id] if article[7]=="1"]) for feed_id in self.feeds.keys()]) + html += """\n""" % \ + (sum([len([article for article in self.articles[feed_id] if article[7] == "1"]) \ + for feed_id in self.feeds.keys()]),) - html += """\n""" + html += """\n""" % \ + (len([feed for feed in self.feeds.values() if feed[6] == "1"]),) for rss_feed_id in self.articles.keys(): html += """

""" + else: + like = "" + html += article[1].encode('utf-8') + \ " - " + not_read_begin + \ """%s""" % \ (rss_feed_id, article[0].encode('utf-8'), article[2].encode('utf-8')) + \ - not_read_end + \ + not_read_end + like + \ "
\n" html += "
\n" @@ -184,9 +191,11 @@ class Root: html += """\t\n""" % \ (feed_id, self.feeds[feed_id][3].encode('utf-8')) html += """\n""" - html += """

Active e-mail notifications

\n""" - html += """

You like %s article(s).

\n""" % \ - sum([len([article for article in self.articles[feed_id] if article[7]=="1"]) for feed_id in self.feeds.keys()]) + html += """

Active e-mail notifications: %s

\n""" % \ + (len([feed for feed in self.feeds.values() if feed[6] == "1"]),) + html += """

You like %s article(s).

\n""" % \ + (sum([len([article for article in self.articles[feed_id] if article[7] == "1"]) \ + for feed_id in self.feeds.keys()]), ) html += "
\n" html += """

The database contains a total of %s article(s) with @@ -687,7 +696,7 @@ class Root: like.exposed = True - def list_like(self): + def list_favorites(self): """ List of favorites articles """ @@ -708,7 +717,7 @@ class Root: html += htmlfooter return html - list_like.exposed = True + list_favorites.exposed = True def update(self, path=None, event = None): diff --git a/utils.py b/utils.py index f7faffd1..ffdbc082 100755 --- a/utils.py +++ b/utils.py @@ -2,8 +2,8 @@ #-*- coding: utf-8 -*- __author__ = "Cedric Bonhomme" -__version__ = "$Revision: 0.4 $" -__date__ = "$Date: 2010/03/10 $" +__version__ = "$Revision: 0.5 $" +__date__ = "$Date: 2010/04/15 $" __copyright__ = "Copyright (c) 2010 Cedric Bonhomme" __license__ = "GPLv3" -- cgit