[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
This commit is contained in:
substantialnoninfringinguser
2009-05-13 05:38:18 +01:00
parent da154a736b
commit 0f5109cb09
10 changed files with 122 additions and 25 deletions

View File

@@ -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: