Commit 6f8e873c authored by Bram Schoenmakers's avatar Bram Schoenmakers

Allow the caller of pretty_print to pass on its own pretty printing filters.

parent de08a68d
......@@ -42,9 +42,9 @@ class View(object):
for _filter in self._filters:
self._viewdata = _filter.filter(self._viewdata)
def pretty_print(self):
def pretty_print(self, p_pp_filters=[]):
""" Pretty prints the view. """
pp_filters = [self._todolist.pp_number(), pp_color];
pp_filters = [self._todolist.pp_number(), pp_color] + p_pp_filters;
return '\n'.join(pretty_print_list(self._viewdata, pp_filters))
def __str__(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