[py-svn] r38762 - py/trunk/py/doc
hpk at codespeak.net
hpk at codespeak.net
Tue Feb 13 22:56:43 CET 2007
Author: hpk
Date: Tue Feb 13 22:56:42 2007
New Revision: 38762
Modified:
py/trunk/py/doc/confrest.py
Log:
slight sanitizing and allow to change sep in one place
Modified: py/trunk/py/doc/confrest.py
==============================================================================
--- py/trunk/py/doc/confrest.py (original)
+++ py/trunk/py/doc/confrest.py Tue Feb 13 22:56:42 2007
@@ -31,17 +31,21 @@
return html.a(name, href=path, class_="menu")
def fill_menubar(self):
- self.menubar = html.div(
- self.a_docref("index", "index.html"), " ",
- self.a_apigenref("api", "api/index.html"), " ",
- self.a_apigenref("source", "source/index.html"), " ",
- self.a_docref("contact", "contact.html"), " ",
- self.a_docref("download", "download.html"), " ",
- html.a("contact", href="contact.html", class_="menu"), " ",
- html.a("download", href="download.html", class_="menu"), " ",
- id="menubar",
- )
-
+ items = [
+ self.a_docref("index", "index.html"),
+ self.a_apigenref("api", "api/index.html"),
+ self.a_apigenref("source", "source/index.html"),
+ self.a_docref("contact", "contact.html"),
+ self.a_docref("download", "download.html"),
+ html.a("contact", href="contact.html", class_="menu"),
+ html.a("download", href="download.html", class_="menu"),
+ ]
+ 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):
content_type = "%s;charset=%s" %(self.type, self.encoding)
More information about the pytest-commit
mailing list