blob: 0d84aeb43b142280831ebf60bc28ba16dfc5bd57 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
from pysite.base_route import RouteView
from pysite.constants import TABLE_MANAGER_ROLES
from pysite.decorators import require_roles
from pysite.tables import TABLES
class TablesView(RouteView):
path = "/tables"
name = "tables.index"
@require_roles(*TABLE_MANAGER_ROLES)
def get(self):
return self.render("staff/tables/index.html", tables=TABLES)
|