Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/archivo.py
diff options
context:
space:
mode:
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] = []