blob: 5c914c1675af52b2092fe2ba596823baa65da682 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# coding=utf-8
from pysite.base_route import RouteView
from pysite.constants import ALL_STAFF_ROLES
from pysite.decorators import require_roles
class EditView(RouteView):
path = "/edit/<path:page>" # "path" means that it accepts slashes
name = "edit"
@require_roles(*ALL_STAFF_ROLES)
def get(self, page):
return self.render("staff/staff.html")
|