From c772f35b32a4fb96e64986a9785791079369faac Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Mon, 15 Nov 2010 17:45:31 +0100 Subject: Improvements. HTML input balises (type: search, url and number). --- pyAggr3g470r.py | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index abbb36af..b9f0d41e 100755 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -196,8 +196,7 @@ class Root: html += """History
\n""" html += """Fetch all feeds
\n""" html += """Mark articles as read\n""" - html += """
\n""" + html += """
\n""" html += "
\n" # insert the list of feeds in the menu html += self.create_list_of_feeds() @@ -236,7 +235,7 @@ class Root: html += htmlnav html += """
\n""" html += "

Add Feeds

\n" - html += """
\n\n
\n""" if self.articles: @@ -273,10 +272,7 @@ class Root: # Some statistics if self.articles: - if not hasattr(self, 'top_words') or os.path.getmtime(utils.sqlite_base) != self.last_top_words_update: - # only when the base has changed for best performance - self.top_words = utils.top_words(self.articles, n=50, size=int(word_size)) - self.last_top_words_update = os.path.getmtime(utils.sqlite_base) + self.top_words = utils.top_words(self.articles, n=50, size=int(word_size)) html += "

Statistics

\n
\n" if "oice" not in utils.IMPORT_ERROR: # counter object to count the number of @@ -287,16 +283,11 @@ class Root: counter[article[6]] += 1 # Tags cloud - html += "Minimum size of a word: " - html += """
\n""" - html += "

Tag cloud

\n" + html += 'Minimum size of a word:' + html += '
' + html += '' + html += '
\n' + html += '

Tag cloud

\n' html += '
' + \ utils.tag_cloud(self.top_words) + '
' @@ -740,7 +731,7 @@ class Root: utils.tag_cloud([(elem, timeline[elem]) for elem in timeline.keys()], \ query) + '
' - html += "
\n" + html += "\n
\n" html += htmlfooter return html -- cgit