pvl/verkko/urls.py
changeset 19 4e2e26f4d058
parent 13 a2f245750700
child 25 47faf2ac32d0
equal deleted inserted replaced
18:2d16489b8782 19:4e2e26f4d058
    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),