Subversion Repositories basico

Rev

Rev 6 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6 Rev 10
Line 248... Line 248...
248
        try:
248
        try:
249
            alltasks = set(self.get_config_value('Tasks').split(','))
249
            alltasks = set(self.get_config_value('Tasks').split(','))
250
        except:
250
        except:
251
            alltasks = set()
251
            alltasks = set()
252
252
253
        #~ self.log.debug("Tasks: %s" % alltasks)
-
 
-
 
253
        self.log.debug("All Tasks: %s" % alltasks)
254
254
255
        linkedtasks = set()
255
        linkedtasks = set()
256
        for sapnote in sapnotes:
256
        for sapnote in sapnotes:
257
            tasks = self.sap.get_linked_tasks(sapnote)
257
            tasks = self.sap.get_linked_tasks(sapnote)
258
            for task in tasks:
258
            for task in tasks:
259
                linkedtasks.add(task)
259
                linkedtasks.add(task)
-
 
260
        self.log.debug("Linked Tasks: %s" % alltasks)
260
261
261
        for task in alltasks:
262
        for task in alltasks:
262
            if task in linkedtasks:
263
            if task in linkedtasks:
263
                model.append([True, task])
264
                model.append([True, task])
264
            else:
265
            else:
265
                model.append([False, task])
-
 
-
 
266
                if len(task) > 0:
-
 
267
                    model.append([False, task])
266
268
267
269
268
270
269
    def save_tasks(self):
271
    def save_tasks(self):
270
        settings = {}
272
        settings = {}