]>
git.madduck.net Git - etc/taskwarrior.git/commitdiff
madduck's git repository
Every one of the projects in this repository is available at the canonical
URL git://git.madduck.net/madduck/pub/<projectpath> — see
each project's metadata for the exact URL.
All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@ git. madduck. net .
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
SSH access, as well as push access can be individually
arranged .
If you use my repositories frequently, consider adding the following
snippet to ~/.gitconfig and using the third clone URL listed for each
project:
[url "git://git.madduck.net/madduck/"]
insteadOf = madduck:
summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5ba0e11 )
import re
import subprocess
import re
import subprocess
-from tasklib.task import Task Filter
+from tasklib.filters import TaskWarrior Filter
VERSION_2_1_0 = six.u('2.1.0')
VERSION_2_2_0 = six.u('2.2.0')
VERSION_2_1_0 = six.u('2.1.0')
VERSION_2_2_0 = six.u('2.2.0')
- filter_class = TaskFilter
+ filter_class = TaskWarrior Filter
@abc.abstractmethod
def filter_tasks(self, filter_obj):
@abc.abstractmethod
def filter_tasks(self, filter_obj):
from tasklib.serializing import SerializingObject
from tasklib.serializing import SerializingObject
-class TaskFilter(SerializingObject):
+class TaskWarrior Filter(SerializingObject):
"""
A set of parameters to filter the task list with.
"""
"""
A set of parameters to filter the task list with.
"""
class SerializingObject(object):
"""
class SerializingObject(object):
"""
- Common ancestor for TaskResource & TaskFilter, since they both
+ Common ancestor for TaskResource & TaskWarrior Filter, since they both
need to serialize arguments.
Serializing method should hold the following contract:
need to serialize arguments.
Serializing method should hold the following contract:
def __init__(self, warrior=None, filter_obj=None):
self.warrior = warrior
self._result_cache = None
def __init__(self, warrior=None, filter_obj=None):
self.warrior = warrior
self._result_cache = None
- self.filter_obj = filter_obj or TaskFilter(warrior)
+ self.filter_obj = filter_obj or TaskWarrior Filter(warrior)
def __deepcopy__(self, memo):
"""
def __deepcopy__(self, memo):
"""