diff options
author | goatchurch <devnull@localhost> | 2009-08-01 07:31:27 +0100 |
---|---|---|
committer | goatchurch <devnull@localhost> | 2009-08-01 07:31:27 +0100 |
commit | 907746289386da6b6342752a0628742905a59a69 (patch) | |
tree | 8e5a438392ddace01694734a3420877e42da79e1 /parsers/logbooks.py | |
parent | 7158a79a347d99fb1f8e94e034f2d79e08ad9172 (diff) | |
download | troggle-907746289386da6b6342752a0628742905a59a69.tar.gz troggle-907746289386da6b6342752a0628742905a59a69.tar.bz2 troggle-907746289386da6b6342752a0628742905a59a69.zip |
[svn] now with ability to make new svx file
Diffstat (limited to 'parsers/logbooks.py')
-rw-r--r-- | parsers/logbooks.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/parsers/logbooks.py b/parsers/logbooks.py index 9866c84..0867686 100644 --- a/parsers/logbooks.py +++ b/parsers/logbooks.py @@ -89,7 +89,7 @@ def EnterLogIntoDbase(date, place, title, text, trippeople, expedition, logtime_ for tripperson, time_underground in trippersons:
lookupAttribs={'person_expedition':tripperson, 'logbook_entry':lbo}
nonLookupAttribs={'time_underground':time_underground, 'date':date, 'is_logbook_entry_author':(tripperson == author)}
- print nonLookupAttribs
+ #print nonLookupAttribs
save_carefully(models.PersonTrip, lookupAttribs, nonLookupAttribs)
@@ -326,7 +326,7 @@ def LoadLogbookForExpedition(expedition): if lyear == year:
break
fin = open(os.path.join(expowebbase, lloc))
- txt = fin.read()
+ txt = fin.read().decode("latin1")
fin.close()
parsefunc(year, expedition, txt)
SetDatesFromLogbookEntries(expedition)
|