--- a/pvl/verkko/hosts.py Wed Oct 10 21:39:54 2012 +0300
+++ b/pvl/verkko/hosts.py Wed Oct 10 21:59:34 2012 +0300
@@ -6,6 +6,7 @@
import logging; log = logging.getLogger('pvl.verkko.hosts')
+# XXX: this should actually be DHCPHost
class Host (object) :
DATE_FMT = '%Y%m%d'
@@ -131,11 +132,9 @@
html.h2('Related'),
render_hosts(hosts),
- html.a(href='/')(html('«'), 'Back'),
+ html.a(href='/hosts')(html('«'), 'Back'),
)
-from werkzeug.wrappers import Response
-
def respond (request, db, path) :
"""
Handle request
@@ -193,5 +192,5 @@
# render
html = web.render_layout(title, html)
- return Response(html, content_type='text/html; charset=UTF-8')
+ return web.Response(html, content_type='text/html; charset=UTF-8')