[svn r38762] slight sanitizing and allow to change sep in one place
--HG-- branch : trunk
This commit is contained in:
parent
441724abbe
commit
8efaf88364
|
@ -31,17 +31,21 @@ class Page(object):
|
||||||
return html.a(name, href=path, class_="menu")
|
return html.a(name, href=path, class_="menu")
|
||||||
|
|
||||||
def fill_menubar(self):
|
def fill_menubar(self):
|
||||||
self.menubar = html.div(
|
items = [
|
||||||
self.a_docref("index", "index.html"), " ",
|
self.a_docref("index", "index.html"),
|
||||||
self.a_apigenref("api", "api/index.html"), " ",
|
self.a_apigenref("api", "api/index.html"),
|
||||||
self.a_apigenref("source", "source/index.html"), " ",
|
self.a_apigenref("source", "source/index.html"),
|
||||||
self.a_docref("contact", "contact.html"), " ",
|
self.a_docref("contact", "contact.html"),
|
||||||
self.a_docref("download", "download.html"), " ",
|
self.a_docref("download", "download.html"),
|
||||||
html.a("contact", href="contact.html", class_="menu"), " ",
|
html.a("contact", href="contact.html", class_="menu"),
|
||||||
html.a("download", href="download.html", class_="menu"), " ",
|
html.a("download", href="download.html", class_="menu"),
|
||||||
id="menubar",
|
]
|
||||||
)
|
items2 = [items.pop(0)]
|
||||||
|
sep = " "
|
||||||
|
for item in items:
|
||||||
|
items2.append(sep)
|
||||||
|
items2.append(item)
|
||||||
|
self.menubar = html.div(id="menubar", *items2)
|
||||||
|
|
||||||
def fill(self):
|
def fill(self):
|
||||||
content_type = "%s;charset=%s" %(self.type, self.encoding)
|
content_type = "%s;charset=%s" %(self.type, self.encoding)
|
||||||
|
|
Loading…
Reference in New Issue