Commit bf851310 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Rename method.

parent 5a7aeb10
......@@ -86,7 +86,7 @@ class DCommand(Command):
""" An additional condition whether execute_specific should be executed. """
return True
def conditionFailedText(self):
def condition_failed_text(self):
return ""
def execute_specific(self):
......@@ -112,5 +112,5 @@ class DCommand(Command):
elif not self.todo:
self.error("Invalid todo number given.")
else:
self.error(self.conditionFailedText())
self.error(self.condition_failed_text())
......@@ -43,7 +43,7 @@ class DoCommand(DCommand):
""" An additional condition whether execute_specific should be executed. """
return not self.todo.is_completed()
def conditionFailedText(self):
def condition_failed_text(self):
return "Todo has already been completed."
def execute_specific(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment