Subversion Repositories basico

Compare Revisions

Ignore whitespace Rev 210 → Rev 211

/branches/BR-0.3/basico/sapnoteviewmenu.py
5,9 → 5,10
# License: GPL v3
# Description: SAPNoteViewMenu Widget
 
from enum import IntEnum
# ~ from enum import IntEnum
import traceback as tb
from cgi import escape
from collections import OrderedDict
 
import gi
gi.require_version('Gdk', '3.0')
338,8 → 339,9
self.model.clear()
self.tasks = self.app.get_service('Tasks')
tasks = self.tasks.get_all()
for tid in tasks:
node = self.get_node_task(tid, tasks[tid])
od = OrderedDict(sorted(tasks.items(), key=lambda t: t[1]))
for tid in od:
node = self.get_node_task(tid, od[tid])
pid = self.model.append(None, node)