blob: 7569ba322548db1922cc07e58f59cad5080c5557 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# coding=utf-8
from pprint import pformat
from flask import current_app
from pysite.base_route import RouteView
from pysite.constants import ALL_STAFF_ROLES
from pysite.decorators import require_roles
class StaffView(RouteView):
path = "/"
name = "index"
@require_roles(*ALL_STAFF_ROLES)
def get(self):
return self.render("staff/staff.html", app_config=pformat(current_app.config, indent=4, width=120))
|