]>
git.ipfire.org Git - ipfire.org.git/blob - src/web/mirrors.py
7 class IndexHandler(base
.BaseHandler
):
9 self
.render("mirrors/index.html", mirrors
=self
.backend
.mirrors
)
12 class MirrorHandler(base
.BaseHandler
):
13 def get(self
, hostname
):
14 mirror
= self
.mirrors
.get_by_hostname(hostname
)
16 raise tornado
.web
.HTTPError(404, "Could not find %s" % hostname
)
18 self
.render("mirrors/mirror.html", mirror
=mirror
)