equal
deleted
inserted
replaced
12 def render (self) : |
12 def render (self) : |
13 html = web.html |
13 html = web.html |
14 |
14 |
15 return ( |
15 return ( |
16 html.ul( |
16 html.ul( |
17 # TODO: self.url |
17 html.li( |
18 html.a(href=self.url(hosts.ListHandler))("DHCP Hosts"), |
18 "DHCP Hosts", |
|
19 html.ul( |
|
20 html.li(html.a(href=self.url(hosts.ListHandler, **opts))(title)) for title, opts in hosts.ListHandler.VIEWS |
|
21 ) |
|
22 ), |
19 ) |
23 ) |
20 ) |
24 ) |
21 |
25 |
22 urls = Map(( |
26 urls = Map(( |
23 rule('/', Index), |
27 rule('/', Index), |