diff options
author | Yader Velásquez <yajosev@gmail.com> | 2010-12-28 21:57:11 (GMT) |
---|---|---|
committer | Yader Velásquez <yajosev@gmail.com> | 2010-12-28 21:57:11 (GMT) |
commit | c6746552bcf26863049c43d7102f20c24af0068d (patch) | |
tree | cad853a5cd022a72efdb34be11658f71279e5e19 /archivo.py | |
parent | 94ea0d4c70473a4dc0a0d09664083dab8aafc28f (diff) |
importar efemerides completada
Diffstat (limited to 'archivo.py')
-rw-r--r-- | archivo.py | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -92,7 +92,7 @@ def abrir_efemeride(path): def guardar_efemeride(path, file_name): '''import, convert and save a new ephemeris database''' - path = path + '/data/efemerides/pkl' + path = path + '/data/efemerides.pkl' di = {} file = open(file_name, 'r') lines = file.readlines() @@ -103,6 +103,8 @@ def guardar_efemeride(path, file_name): current_text = current_text[:j] + '\n' + current_text[j + 1 :] current_id = lines[i][0 : 8] di[current_id] = current_text + _log.debug(di) + _log.debug(type(path)) file_new = open(path, 'wb') pickle.dump(di,file_new) file_new.close() @@ -115,9 +117,9 @@ def guardar_dato(indice, contenido, categoria, bolean, path): f = open(path, 'rb+wb') dia = pickle.load(f) if bolean: - prioridad = 'Importante' + prioridad = _('Importante') else: - prioridad = 'Normal' + prioridad = _('Normal') if dia.has_key(indice) is False: dia[indice] = [] |