]>
git.ipfire.org Git - ipfire.org.git/blob - www/webapp/handlers_stasy.py
5 from handlers_base
import *
7 class StasyBaseHandler(BaseHandler
):
10 return backend
.Stasy()
13 class StasyIndexHandler(StasyBaseHandler
):
15 profiles
= self
.stasy
.get_profiles()
17 self
.render("stasy-index.html", profiles
=profiles
)
20 class StasyProfileHandler(StasyBaseHandler
):
21 def get(self
, profile_id
):
22 profile
= self
.stasy
.get_profile(profile_id
)
24 raise tornado
.web
.HTTPError(404, "Profile not found: %s" % profile_id
)
26 self
.render("stasy-profile.html", profile
=profile
)