diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-06-19 01:13:41 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-06-19 01:13:41 +0200 |
commit | ba9ea93a0f52178d24a606fddc2acc5dc85b7ff2 (patch) | |
tree | 0a2b43561b84eefed07ecb83de1ecf4fad428532 /helpers/action.py | |
parent | e5e6409426e3eb1918318973372568081e6d9dd6 (diff) | |
download | MusicSampler-ba9ea93a0f52178d24a606fddc2acc5dc85b7ff2.tar.gz MusicSampler-ba9ea93a0f52178d24a606fddc2acc5dc85b7ff2.tar.zst MusicSampler-ba9ea93a0f52178d24a606fddc2acc5dc85b7ff2.zip |
enhancing locks
Diffstat (limited to 'helpers/action.py')
-rw-r--r-- | helpers/action.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/helpers/action.py b/helpers/action.py index 8a69fae..97873a0 100644 --- a/helpers/action.py +++ b/helpers/action.py | |||
@@ -28,9 +28,12 @@ class Action: | |||
28 | return True | 28 | return True |
29 | 29 | ||
30 | def run(self): | 30 | def run(self): |
31 | print(getattr(self, self.action + "_print")(**self.arguments)) | 31 | print(self.description()) |
32 | return getattr(self, self.action)(**self.arguments) | 32 | return getattr(self, self.action)(**self.arguments) |
33 | 33 | ||
34 | def description(self): | ||
35 | return getattr(self, self.action + "_print")(**self.arguments) | ||
36 | |||
34 | def command(self, command = "", **kwargs): | 37 | def command(self, command = "", **kwargs): |
35 | pass | 38 | pass |
36 | 39 | ||