From 285b3c841ecae389bfbb3aea23ff417d54772785 Mon Sep 17 00:00:00 2001 From: yaderv Date: Wed, 23 Mar 2011 16:55:22 +0000 Subject: pending tasks --- (limited to 'archivo.py') diff --git a/archivo.py b/archivo.py index 75748cc..7cd4bc2 100644 --- a/archivo.py +++ b/archivo.py @@ -71,6 +71,23 @@ def crear_modelo(indice, path): archivo.close() return modelo + +def tareas_pendientes(path): + '''Save/Update a file with the pending task, + activities marked as in progress''' + lista_temporal = list() + path_actividades = path + '/data/actividades.pkl' + if os.path.exists(path_actividades): + archivo = open(path_actividades, 'r') + dia = pickle.load(archivo) + _log.debug(dia) + 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) + + def comprobar_archivo(path, archivo): '''Return true if the ephemeris database exists, else return false''' -- cgit v0.9.1