From 9e352d50b9acdc60bf7dca013770a089dd1aa11e Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sat, 29 Dec 2012 16:00:06 +0100 Subject: Removed global variables for HTML header and footer tags. --- source/pyAggr3g470r.py | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) (limited to 'source') diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py index bd389a0f..86ae81d7 100755 --- a/source/pyAggr3g470r.py +++ b/source/pyAggr3g470r.py @@ -73,28 +73,6 @@ def handle_error(): cherrypy.response.status = 500 cherrypy.response.body = [html] -def htmlheader(text=""): - """ - Return the header of the HTML page with the number of unread articles - in the 'title' HTML tag.. - """ - return '\n' + \ - '' + \ - '\n\t'+ text +' - pyAggr3g470r - News aggregator\n' + \ - '\t' + \ - '\n\t\n' + \ - '\n\t\n' + \ - '\n' - -htmlfooter = '

This software is under GPLv3 license. You are welcome to copy, modify or' + \ - ' redistribute the source code according to the' + \ - ' GPLv3 license.

\n' + \ - '\n' - -htmlnav = '\n

pyAggr3g470r - News aggregator

\n' - class RestrictedArea(object): """ All methods in this controller (and subcontrollers) is @@ -468,8 +446,7 @@ class pyAggr3g470r(object): """ Add a new feed with the URL of a page. """ - html = htmlheader() - html += htmlnav + html = "" html += """
""" # search the feed in the HTML page with BeautifulSoup feed_url = utils.search_feed(url) @@ -485,7 +462,6 @@ class pyAggr3g470r(object): html += """

Feed added. You can now fetch your feeds.

""" html += """\n
\nBack to the management page.
\n""" html += "
\n" - html += htmlfooter return html add_feed.exposed = True -- cgit