Merge branch 'kotowicz-master', manually merging conflicts in these files:

helpdesk/lib.py
	helpdesk/templates/helpdesk/ticket_desc_table.html
	helpdesk/views/staff.py
This commit is contained in:
Ross Poulton
2012-01-11 09:18:05 +00:00
26 changed files with 3172 additions and 699 deletions

View File

@ -57,7 +57,13 @@ def send_templated_mail(template_name, email_context, recipients, sender=None, b
import os
context = Context(email_context)
locale = context['queue'].get('locale', 'en')
if hasattr(context['queue'], 'locale'):
locale = getattr(context['queue'], 'locale', '')
else:
locale = context['queue'].get('locale', 'en')
if not locale:
locale = 'en'
t = None
try:
@ -102,7 +108,8 @@ def send_templated_mail(template_name, email_context, recipients, sender=None, b
).render(context)
if isinstance(recipients,(str,unicode)):
recipients = recipients.split(',')
if recipients.find(','):
recipients = recipients.split(',')
elif type(recipients) != list:
recipients = [recipients,]