diff options
author | Yader Velásquez <yajosev@gmail.com> | 2011-01-14 03:14:50 (GMT) |
---|---|---|
committer | Yader Velásquez <yajosev@gmail.com> | 2011-01-14 03:14:50 (GMT) |
commit | a75cb2319deceffe1d7a4fc3d5ce77f9e6aba2ad (patch) | |
tree | a40c6b37e53c5cce1361465753e3e49844c237fd /archivo.py | |
parent | a2bbb1bedca747a4f56932507a89b5c1b5547a52 (diff) |
is imposible to add a new activity if the file is empty
Diffstat (limited to 'archivo.py')
-rw-r--r-- | archivo.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |