summaryrefslogtreecommitdiffstats
path: root/parsers/survex.py
diff options
context:
space:
mode:
authorsubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-13 05:38:18 +0100
committersubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-13 05:38:18 +0100
commit0f5109cb0988d76c5b7d3037acca0ad8ac07f0dd (patch)
treec272078cde2262740c74fcfdf40dea9073c87f27 /parsers/survex.py
parentda154a736b2bd9c690f0e7bcbb9c06c7cb1859e2 (diff)
downloadtroggle-0f5109cb0988d76c5b7d3037acca0ad8ac07f0dd.tar.gz
troggle-0f5109cb0988d76c5b7d3037acca0ad8ac07f0dd.tar.bz2
troggle-0f5109cb0988d76c5b7d3037acca0ad8ac07f0dd.zip
[svn] new person expedition
Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8189 by julian @ 1/18/2009 7:50 PM
Diffstat (limited to 'parsers/survex.py')
-rw-r--r--parsers/survex.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/parsers/survex.py b/parsers/survex.py
index 00b6254..1f688c3 100644
--- a/parsers/survex.py
+++ b/parsers/survex.py
@@ -70,7 +70,8 @@ def make_model(name, parent, iter_lines, sf, c, l):
and names.strip("\t").strip(" ") != "Both"])
for name in re.split("&|/|\+|,|;", names):
try:
- models.PersonRole(person = exp.GetPersonExpedition(name.strip(" ")).person,
+ models.PersonRole(personexpedition = exp.GetPersonExpedition(name.strip(" ")),
+ person = exp.GetPersonExpedition(name.strip(" ")).person,
survex_block = m,
role = models.Role.objects.get(name = roles[role])).save()
except AttributeError: