Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
senpy
senpy
Commits
56fef9e8
Commit
56fef9e8
authored
Feb 21, 2016
by
J. Fernando Sánchez
Browse files
--amend
parent
14a3e410
Changes
1
Hide whitespace changes
Inline
Side-by-side
senpy/extensions.py
View file @
56fef9e8
...
...
@@ -134,7 +134,12 @@ class Senpy(object):
self
.
plugins
[
plugin_name
].
is_activated
=
active
def
activate_plugin
(
self
,
plugin_name
,
sync
=
False
):
plugin
=
self
.
plugins
[
plugin_name
]
try
:
plugin
=
self
.
plugins
[
plugin_name
]
except
KeyError
:
raise
Error
(
message
=
"Plugin not found: {}"
.
format
(
plugin_name
),
status
=
404
)
logger
.
info
(
"Activating plugin: {}"
.
format
(
plugin
.
name
))
def
act
():
try
:
...
...
@@ -152,7 +157,11 @@ class Senpy(object):
return
th
def
deactivate_plugin
(
self
,
plugin_name
,
sync
=
False
):
plugin
=
self
.
plugins
[
plugin_name
]
try
:
plugin
=
self
.
plugins
[
plugin_name
]
except
KeyError
:
raise
Error
(
message
=
"Plugin not found: {}"
.
format
(
plugin_name
),
status
=
404
)
def
deact
():
try
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment