Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/archivo.py
diff options
context:
space:
mode:
authorYader 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)
commita75cb2319deceffe1d7a4fc3d5ce77f9e6aba2ad (patch)
treea40c6b37e53c5cce1361465753e3e49844c237fd /archivo.py
parenta2bbb1bedca747a4f56932507a89b5c1b5547a52 (diff)
is imposible to add a new activity if the file is empty
Diffstat (limited to 'archivo.py')
-rw-r--r--archivo.py6
1 files changed, 4 insertions, 2 deletions
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