From b4d82ddeea4d231d1c5af8b7bba523ece5822364 Mon Sep 17 00:00:00 2001 From: substantialnoninfringinguser Date: Wed, 13 May 2009 05:49:50 +0100 Subject: [PATCH] [svn] make work Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8236 by julian @ 1/30/2009 5:40 PM --- parsers/cavetab.py | 5 +++-- parsers/survex.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/parsers/cavetab.py b/parsers/cavetab.py index 3203879..270e6a5 100644 --- a/parsers/cavetab.py +++ b/parsers/cavetab.py @@ -1,7 +1,8 @@ # -*- coding: utf-8 -*- import sys -import settings +sys.path.append("/home/mjg/expoweb/troggle") import expo.models as models +import settings as settings import csv import time @@ -286,4 +287,4 @@ def GetCaveLookup(): Gcavelookup["hauchhole"] = Gcavelookup["234"] return Gcavelookup - \ No newline at end of file + diff --git a/parsers/survex.py b/parsers/survex.py index 017a3ba..93f708e 100644 --- a/parsers/survex.py +++ b/parsers/survex.py @@ -84,7 +84,7 @@ def make_model(name, parent, iter_lines, sf, c, l): survex_block = m, role = models.Role.objects.get(name = roles[role])).save() else: - print "no person", exp, sname, role + print ("no person", exp, sname, role) except AttributeError: print ("Person not found: " + name + " in " + file_ + " " + role).encode('ascii', 'xmlcharrefreplace') except AssertionError, inst: