From 6278d00ed760cd216067dd7977ab874c1d42bb49 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Sun, 4 Mar 2012 09:47:56 +0100 Subject: Mamangement page is now almost workink. --- pyAggr3g470r.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'pyAggr3g470r.py') diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index 047bf447..4a9280fc 100755 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -251,6 +251,8 @@ class Root: Allows adding and deleting feeds. Export functions of the SQLite data base and display some statistics. """ + feeds = self.articles.get_all_collections() + html = htmlheader() html += htmlnav html += """
\n""" @@ -258,27 +260,27 @@ class Root: # Form: add a feed html += """
\n
\n""" - if self.feeds: + if feeds: # Form: delete a feed html += "

Delete Feeds

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

Active e-mail notifications: %s

\n""" % \ - (self.nb_mail_notifications,) + (self.articles.nb_mail_notifications(),) html += """

You like %s article(s).

\n""" % \ - (self.nb_favorites, ) + (self.articles.nb_favorites(), ) html += "
\n" # Informations about the data base of articles html += """

%s article(s) are loaded from the database with %s unread article(s).
\n""" % \ - (self.nb_articles, self.nb_unread_articles) - html += """Database: %s.\n
Size: %s bytes.
\n""" % \ - (os.path.abspath(utils.sqlite_base), os.path.getsize(utils.sqlite_base)) + (self.articles.nb_articles(), self.articles.nb_unread_articles()) + #html += """Database: %s.\n
Size: %s bytes.
\n""" % \ + #(os.path.abspath(utils.sqlite_base), os.path.getsize(utils.sqlite_base)) html += 'Advanced statistics.

\n' html += """
\n
\n""" -- cgit