diff options
author | 2018-04-03 16:52:23 +0100 | |
---|---|---|
committer | 2018-04-03 16:52:23 +0100 | |
commit | 4c639ebb06c8ef931589aca98185777b0b3e1175 (patch) | |
tree | a74b053a4c73f595cb4907e2dd516b5ff58372fc /pysite/views/wiki/edit.py | |
parent | Fix staff route name (diff) |
Basic wiki routes
Diffstat (limited to 'pysite/views/wiki/edit.py')
-rw-r--r-- | pysite/views/wiki/edit.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pysite/views/wiki/edit.py b/pysite/views/wiki/edit.py new file mode 100644 index 00000000..5c914c16 --- /dev/null +++ b/pysite/views/wiki/edit.py @@ -0,0 +1,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") |