Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/archivo.py
diff options
context:
space:
mode:
authoryaderv <yajosev@gmail.com>2011-03-25 16:30:26 (GMT)
committer yaderv <yajosev@gmail.com>2011-03-25 16:30:26 (GMT)
commit9fa3449c826b7a7615aa6dff263ba8d283462dca (patch)
treeb8c653945d592fb7f2f21444f03a4643ae127d9e /archivo.py
parentab6395ef9ee53ea6190e7da2e8a8e4a9ce697151 (diff)
pending task bug fixed
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