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, 5 insertions, 9 deletions
diff --git a/archivo.py b/archivo.py
index 42a895a..b088ad4 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,8 @@ 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'])
return modelo
@@ -134,7 +130,7 @@ def guardar_archivo(path, file_name, tipo_archivo):
else:
current_text = lines[i][4 : len(lines[i]) - 2]
for j in range(30, len(current_text),30):
- current_text = current_text[:j] + '\n' + current_text[j:]
+ current_text = current_text[:j] + '-\n' + current_text[j:]
if tipo_archivo is 1:
current_id = lines[i][0 : 8]
else: