aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2010-01-29 23:14:43 +0100
committercedricbonhomme <devnull@localhost>2010-01-29 23:14:43 +0100
commitc9c89ba34bce194774f52d3e12451b1d0ea5d138 (patch)
tree7c466e00d2d89740aabc002a02bd5692beac4455
parentBug fix : error in the address of the SQLite base. (diff)
downloadnewspipe-c9c89ba34bce194774f52d3e12451b1d0ea5d138.tar.gz
newspipe-c9c89ba34bce194774f52d3e12451b1d0ea5d138.tar.bz2
newspipe-c9c89ba34bce194774f52d3e12451b1d0ea5d138.zip
Added : UTF-8 encoding of web pages and a link for the management of feed.
-rw-r--r--pyAggr3g470r.py19
1 files changed, 13 insertions, 6 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py
index db4ac620..839bdc90 100644
--- a/pyAggr3g470r.py
+++ b/pyAggr3g470r.py
@@ -25,10 +25,11 @@ path = { '/css/style.css': {'tools.staticfile.on': True, 'tools.staticfile.filen
}
htmlheader = """<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
-lang="en"> <head> <link rel="stylesheet" type="text/css" href="/css/style.css"
-/> <title>pyAggr3g470r - RSS Feed Reader</title> </head>"""
+ lang="en">\n<head>\n<link rel="stylesheet" type="text/css" href="/css/style.css"
+ />\n<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>\n
+ <title>pyAggr3g470r - RSS Feed Reader</title> </head>"""
-htmlfooter = """</body></html>"""
+htmlfooter = """</div></body></html>"""
htmlnav = """<body><h1><a href="/">pyAggr3g470r - RSS Feed Reader</a></h1><a
href="http://bitbucket.org/cedricbonhomme/pyaggr3g470r/">pyAggr3g470r (source code)</a>
@@ -40,9 +41,10 @@ class Root:
html = htmlheader
html += htmlnav
html += """<br/><div class="right inner">"""
- html += """ <h2>Search</h2> """
- html += """ <form method=get action="q/"><input type="text" name="v" value=""> <input
- type="submit" value="search"></form> """
+ html += """<h2>Search</h2>"""
+ html += """<form method=get action="q/"><input type="text" name="v" value=""> <input
+ type="submit" value="search"></form>"""
+ html += """<a href="f/">Management of feed</a>"""
html += """</div> <div class="left inner">"""
@@ -58,6 +60,10 @@ class Root:
html += htmlfooter
return html
+ def f(self):
+ """
+ """
+ return "Hello world !"
def retrieve_feed(self):
@@ -76,6 +82,7 @@ class Root:
return dic
index.exposed = True
+ f.exposed = True
bgstack15