Commit b478b294 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Add method to check for task completeness.

parent 3da4d82b
......@@ -127,6 +127,10 @@ class TodoBase(object):
""" Returns a list of contexts associated with this todo item. """
return self.fields['contexts']
def is_completed(self):
""" Returns True iff this todo has been completed. """
return self.fields['completed']
def __print__(self):
""" A printer for the todo item. """
print self.src + "\n"
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