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