~kees/gtg/lp-562604

« back to all changes in this revision

Viewing changes to GTG/taskbrowser/browser.py

  • Committer: Luca Invernizzi
  • Date: 2010-03-18 00:10:30 UTC
  • Revision ID: invernizzi.l@gmail.com-20100318001030-y09ng5acapqaskr0
Drag and drop support on taskbrowser works again (fixing #bug 529908).
Lionel, please see this commit: there is a hack in tasktree.py to update
a task when its parents change, but it doesn't work properly. How could 
this be resolved?

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
import locale
31
31
import re
32
32
import datetime
33
 
import threading
34
33
import time
35
34
 
36
35
#our own imports
40
39
from GTG import ngettext
41
40
from GTG.tools.logger                 import Log
42
41
from GTG.core.task                    import Task
43
 
from GTG.core.tagstore                import Tag
 
42
#from GTG.core.tagstore                import Tag
44
43
from GTG.taskbrowser                  import GnomeConfig
45
44
from GTG.taskbrowser                  import tasktree
46
45
#from GTG.taskbrowser.preferences      import PreferencesDialog
54
53
from GTG.tools.dates                  import strtodate,\
55
54
                                             no_date,\
56
55
                                             FuzzyDate
57
 
from GTG.tools                        import clipboard
 
56
#from GTG.tools                        import clipboard
58
57
 
59
58
#=== MAIN CLASS ===============================================================
60
59
 
90
89
        #treeviews handlers
91
90
        self.tags_tv = None
92
91
        self.tasks_tv = None
93
 
        self.ctask_tv = ClosedTaskTreeView()
 
92
        self.ctask_tv = ClosedTaskTreeView(self.req)
94
93
 
95
94
        ### YOU CAN DEFINE YOUR INTERNAL MECHANICS VARIABLES BELOW
96
95
        
212
211
 
213
212
    def _init_ui_widget(self):
214
213
        # The Active tasks treeview
215
 
        self.task_tv = ActiveTaskTreeView()
 
214
        self.task_tv = ActiveTaskTreeView(self.req)
216
215
        self.task_tv.set_model(self.task_modelsort)
217
216
        self.main_pane.add(self.task_tv)
218
217