diff options
| author | 2026-05-28 02:12:40 -0700 | |
|---|---|---|
| committer | 2026-05-28 02:12:40 -0700 | |
| commit | 09a4099586657170cbdcff071b2d0fac5ed133b7 (patch) | |
| tree | 8e8df3ca47bf2e89b430eb4f77e329dc78946320 /oni-python/snippets/python-mode/permission_guard | |
| parent | a44d06182fbcb6b424b4ac699c69f7132c68acb6 (diff) | |
| download | emacs-config-09a4099586657170cbdcff071b2d0fac5ed133b7.tar.gz emacs-config-09a4099586657170cbdcff071b2d0fac5ed133b7.zip | |
oni-yasnippet: Move all snippets to ‘oni-yasnippet’
There is no real point in having them all separate. Having them all in a single
place makes them much easier to manage.
Diffstat (limited to 'oni-python/snippets/python-mode/permission_guard')
| -rw-r--r-- | oni-python/snippets/python-mode/permission_guard | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/oni-python/snippets/python-mode/permission_guard b/oni-python/snippets/python-mode/permission_guard deleted file mode 100644 index ab53895..0000000 --- a/oni-python/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 |
