aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/views/wiki/edit.py
diff options
context:
space:
mode:
Diffstat (limited to 'pysite/views/wiki/edit.py')
-rw-r--r--pysite/views/wiki/edit.py13
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")