aboutsummaryrefslogtreecommitdiffstats
path: root/emacs/.emacs.d/snippets/python-mode/permission_guard
diff options
context:
space:
mode:
authorGravatar Tom Willemse2019-09-09 22:37:53 -0700
committerGravatar Tom Willemse2019-09-09 22:37:53 -0700
commitf5f12597373ea266eee0d0946f44a4631b7f1e98 (patch)
treea51e1199140aca2a20df68bb62d8827a34266cec /emacs/.emacs.d/snippets/python-mode/permission_guard
parent946b7425dec6b3a97abdd631f1c00f7f4ca79a4f (diff)
downloadnew-dotfiles-f5f12597373ea266eee0d0946f44a4631b7f1e98.tar.gz
new-dotfiles-f5f12597373ea266eee0d0946f44a4631b7f1e98.zip
Remove Emacs snippets
All of these snippets are now distributed with their Emacs configuration.
Diffstat (limited to 'emacs/.emacs.d/snippets/python-mode/permission_guard')
-rw-r--r--emacs/.emacs.d/snippets/python-mode/permission_guard9
1 files changed, 0 insertions, 9 deletions
diff --git a/emacs/.emacs.d/snippets/python-mode/permission_guard b/emacs/.emacs.d/snippets/python-mode/permission_guard
deleted file mode 100644
index ab53895..0000000
--- a/emacs/.emacs.d/snippets/python-mode/permission_guard
+++ /dev/null
@@ -1,9 +0,0 @@
-# -*- mode: snippet -*-
-# name: Permission guard
-# key: defm
-# --
-@method_decorator(permission_required('$1',
- raise_exception=True))
-def dispatch(self, *args, **kwargs):
- '''Make sure the user has the $1 permission.'''
- return super(${3:`(progn (re-search-backward "^[ \t]*class \\(.+\\)(") (match-string 1)))`}, self).dispatch(*args, **kwargs) \ No newline at end of file