diff options
author | yaderv <yajosev@gmail.com> | 2011-03-25 16:30:26 (GMT) |
---|---|---|
committer | yaderv <yajosev@gmail.com> | 2011-03-25 16:30:26 (GMT) |
commit | 9fa3449c826b7a7615aa6dff263ba8d283462dca (patch) | |
tree | b8c653945d592fb7f2f21444f03a4643ae127d9e /archivo.py | |
parent | ab6395ef9ee53ea6190e7da2e8a8e4a9ce697151 (diff) |
pending task bug fixed
Diffstat (limited to 'archivo.py')
-rw-r--r-- | archivo.py | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -75,7 +75,8 @@ def crear_modelo(indice, path): def tareas_pendientes(path): '''Save/Update a file with the pending task, activities marked as in progress''' - modelo = gtk.ListStore(gobject.TYPE_STRING) + progreso = gtk.STOCK_YES + modelo = gtk.ListStore(gobject.TYPE_STRING, gobject.TYPE_STRING) lista_temporal = list() path_actividades = path + '/data/actividades.pkl' path_tareas = path @@ -85,13 +86,10 @@ def tareas_pendientes(path): _log.debug(dia) for fechas_datos in dia: for datos in dia[fechas_datos]: - if datos[3] is not None: - _log.debug(datos) - #modelo.append(datos[0]) - else: - modelo.append('') - else: - modelo.append('') + if progreso in datos: + modelo.append([datos[0], '#FFFFFF']) + #else: + #modelo.append(['']) return modelo |