From a75cb2319deceffe1d7a4fc3d5ce77f9e6aba2ad Mon Sep 17 00:00:00 2001 From: Yader Velásquez Date: Fri, 14 Jan 2011 03:14:50 +0000 Subject: is imposible to add a new activity if the file is empty --- (limited to 'archivo.py') diff --git a/archivo.py b/archivo.py index 1d73e3a..1f6f885 100644 --- a/archivo.py +++ b/archivo.py @@ -25,7 +25,8 @@ from gettext import gettext as _ _log = logging.getLogger('Log archivo') def indice_entero(cadena): - '''return an int from a string with tuple sintax''' + '''Convert a turple's index to an interger number, for + be used by others functions''' cadena = cadena.replace('(','') cadena = cadena.replace(',','') cadena = cadena.replace(')','') @@ -67,7 +68,8 @@ def crear_modelo(indice, path): return modelo def comprobar_efemeride(path): - '''test is the ephemeri file exists''' + '''Return true if the ephemeris database exists, + else return false''' path = path + '/data/efemerides.pkl' if not os.path.exists(path): return False -- cgit v0.9.1