From 3da7bea344bc997d2a8b9024d4d61293165774cd Mon Sep 17 00:00:00 2001 From: yaderv Date: Thu, 24 Mar 2011 17:59:50 +0000 Subject: pending task --- (limited to 'archivo.py') diff --git a/archivo.py b/archivo.py index 7cd4bc2..42a895a 100644 --- a/archivo.py +++ b/archivo.py @@ -75,8 +75,10 @@ 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) lista_temporal = list() path_actividades = path + '/data/actividades.pkl' + path_tareas = path if os.path.exists(path_actividades): archivo = open(path_actividades, 'r') dia = pickle.load(archivo) @@ -84,8 +86,13 @@ def tareas_pendientes(path): for fechas_datos in dia: for datos in dia[fechas_datos]: if datos[3] is not None: - lista_temporal.append(datos[0]) - _log.debug(lista_temporal) + _log.debug(datos) + #modelo.append(datos[0]) + else: + modelo.append('') + else: + modelo.append('') + return modelo def comprobar_archivo(path, archivo): -- cgit v0.9.1