Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/archivo.py
diff options
context:
space:
mode:
Diffstat (limited to 'archivo.py')
-rw-r--r--archivo.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/archivo.py b/archivo.py
index 42a895a..387a29a 100644
--- a/archivo.py
+++ b/archivo.py
@@ -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