~gtg-contributors/gtg/backends20

« back to all changes in this revision

Viewing changes to GTG/core/treefactory.py

  • Committer: Izidor Matušov
  • Date: 2012-02-16 18:33:53 UTC
  • Revision ID: izidor.matusov@gmail.com-20120216183353-wn1r3z4qjsopk0qr
Hide tasks with due date someday, solves #931376

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
from GTG.core.tag                import Tag
28
28
from GTG.core         import CoreConfig
29
29
from GTG.core.search import search_filter
 
30
from GTG.tools.dates import LATER
30
31
 
31
32
 
32
33
class TreeFactory:
188
189
            return True
189
190
 
190
191
    def workview(self, task, parameters=None):
191
 
        wv = self.active(task) and\
192
 
             self.is_started(task) and\
193
 
             self.is_workable(task) and\
194
 
             self.no_disabled_tag(task)
 
192
        wv = ( self.active(task) and
 
193
             self.is_started(task) and
 
194
             self.is_workable(task) and
 
195
             self.no_disabled_tag(task) and
 
196
             task.get_due_date() != LATER
 
197
             )
195
198
        return wv
196
199
 
197
200
    def workdue(self, task):