From ba9ea93a0f52178d24a606fddc2acc5dc85b7ff2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 19 Jun 2016 01:13:41 +0200 Subject: enhancing locks --- helpers/action.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'helpers/action.py') 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: return True def run(self): - print(getattr(self, self.action + "_print")(**self.arguments)) + print(self.description()) return getattr(self, self.action)(**self.arguments) + def description(self): + return getattr(self, self.action + "_print")(**self.arguments) + def command(self, command = "", **kwargs): pass -- cgit v1.2.3