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>2010-12-28 21:57:11 (GMT)
committer Yader Velásquez <yajosev@gmail.com>2010-12-28 21:57:11 (GMT)
commitc6746552bcf26863049c43d7102f20c24af0068d (patch)
treecad853a5cd022a72efdb34be11658f71279e5e19 /archivo.py
parent94ea0d4c70473a4dc0a0d09664083dab8aafc28f (diff)
importar efemerides completada
Diffstat (limited to 'archivo.py')
-rw-r--r--archivo.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/archivo.py b/archivo.py
index 03af5c0..1d73547 100644
--- a/archivo.py
+++ b/archivo.py
@@ -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] = []