Merged [7911] from rcross@amsl.com: fix problem using non-ascii names in session request notification email.

- Legacy-Id: 7930
Note: SVN reference [7911] has been migrated to Git commit e58b72209a
This commit is contained in:
Henrik Levkowetz 2014-06-24 21:10:54 +00:00
commit 27e939380d

View file

@ -94,11 +94,11 @@ def get_requester_text(person,group):
'''
roles = group.role_set.filter(name__in=('chair','secr'),person=person)
if roles:
return '%s, a %s of the %s working group' % (person, roles[0].name, group.acronym)
return '%s, a %s of the %s working group' % (person.ascii, roles[0].name, group.acronym)
if group.parent.role_set.filter(name='ad',person=person):
return '%s, a %s Area Director' % (person, group.parent.acronym.upper())
return '%s, a %s Area Director' % (person.ascii, group.parent.acronym.upper())
if person.role_set.filter(name='secr',group__acronym='secretariat'):
return '%s, on behalf of the %s working group' % (person, group.acronym)
return '%s, on behalf of the %s working group' % (person.ascii, group.acronym)
def save_conflicts(group, meeting, conflicts, name):
'''