aboutsummaryrefslogtreecommitdiff
path: root/source/pyAggr3g470r.py
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2012-04-22 22:58:06 +0200
committercedricbonhomme <devnull@localhost>2012-04-22 22:58:06 +0200
commit839188d60f1c82d7f4c0297276a76564a9efd43d (patch)
treed14d0c389758c11bd59c757c4b9c529ebdeabfbd /source/pyAggr3g470r.py
parentIndentation error. (diff)
downloadnewspipe-839188d60f1c82d7f4c0297276a76564a9efd43d.tar.gz
newspipe-839188d60f1c82d7f4c0297276a76564a9efd43d.tar.bz2
newspipe-839188d60f1c82d7f4c0297276a76564a9efd43d.zip
Removed set_max_articles() function.~
Diffstat (limited to 'source/pyAggr3g470r.py')
-rwxr-xr-xsource/pyAggr3g470r.py28
1 files changed, 1 insertions, 27 deletions
diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py
index e8ba1db0..7c4c8fde 100755
--- a/source/pyAggr3g470r.py
+++ b/source/pyAggr3g470r.py
@@ -237,7 +237,7 @@ class Root:
return html + "</div>"
- def management(self, max_nb_articles=5):
+ def management(self):
"""
Management page.
Allows adding and deleting feeds. Export functions of the MongoDB data base
@@ -282,18 +282,6 @@ class Root:
html += """<form method=get action="/fetch/">\n<input type="submit" value="Fetch all feeds"></form>\n"""
html += """<form method=get action="/drop_base">\n<input type="submit" value="Delete all articles"></form>\n"""
-
- html += '<form method=get action="/set_max_articles/">\n'
- html += "For each feed only load the "
- html += """<input type="number" name="max_nb_articles" value="%s" min="1" step="1" size="2">\n""" % (max_nb_articles)
- html += " last articles."
- if utils.MAX_NB_ARTICLES == -1:
- html += "<br />All articles are currently loaded.\n"
- else:
- html += "<br />For each feed only " + str(utils.MAX_NB_ARTICLES) + " articles are currently loaded. "
- html += '<a href="/set_max_articles/-1">Load all articles.</a><br />\n'
- html += "</form>\n"
-
# Export functions
html += "<h1>Export articles</h1>\n\n"
html += """<form method=get action="/export/"><select name="export_method">\n"""
@@ -1170,20 +1158,6 @@ class Root:
change_feed_logo.exposed = True
-
- def set_max_articles(self, max_nb_articles=1):
- """
- Enables to set the maximum of articles to be loaded per feed from
- the data base.
- """
- if max_nb_articles < -1 or max_nb_articles == 0:
- max_nb_articles = 1
- utils.MAX_NB_ARTICLES = int(max_nb_articles)
- return self.management()
-
- set_max_articles.exposed = True
-
-
def delete_article(self, param):
"""
Delete an article.
bgstack15