diff options
Diffstat (limited to 'archivo.py')
-rw-r--r-- | archivo.py | 14 |
1 files changed, 5 insertions, 9 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,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: |