diff options
author | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-13 05:48:47 +0100 |
---|---|---|
committer | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-13 05:48:47 +0100 |
commit | cb52c47aa9632a6c0affde9b0ceeab06877c760b (patch) | |
tree | 4a242f8a7929db5c1a49958f2aec3a826af893b3 /parsers/logbooks.py | |
parent | ed345f25760d8927f834a69202c2b9b2cef71ee0 (diff) | |
download | troggle-cb52c47aa9632a6c0affde9b0ceeab06877c760b.tar.gz troggle-cb52c47aa9632a6c0affde9b0ceeab06877c760b.tar.bz2 troggle-cb52c47aa9632a6c0affde9b0ceeab06877c760b.zip |
[svn] yorkshire work with tunnel integration
Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8232 by julian @ 1/29/2009 11:40 PM
Diffstat (limited to 'parsers/logbooks.py')
-rw-r--r-- | parsers/logbooks.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/parsers/logbooks.py b/parsers/logbooks.py index 3bad8c4..8138953 100644 --- a/parsers/logbooks.py +++ b/parsers/logbooks.py @@ -12,6 +12,11 @@ import datetime import os
+#
+# When we edit logbook entries, allow a "?" after any piece of data to say we've frigged it and
+# it can be checked up later from the hard-copy if necessary; or it's not possible to determin (name, trip place, etc)
+#
+
#
# the logbook loading section
#
@@ -72,7 +77,7 @@ def EnterLogIntoDbase(date, place, title, text, trippeople, expedition, logtime_ lplace = place.lower()
if lplace not in noncaveplaces:
lbo.cave=GetCaveLookup().get(lplace)
- print "pppp %s |%s|" % (lplace, str(lbo.cave))
+ #print "pppp %s |%s|" % (lplace, str(lbo.cave))
lbo.save()
#print "ttt", date, place
@@ -289,6 +294,7 @@ def SetDatesFromLogbookEntries(expedition): def LoadLogbookForExpedition(expedition):
+ print "deleting logbooks for", expedition
expedition.logbookentry_set.all().delete()
models.PersonTrip.objects.filter(person_expedition__expedition=expedition).delete()
expowebbase = os.path.join(settings.EXPOWEB, "years")
|