From: gfawcett Date: Wed, 27 Apr 2011 13:41:08 +0000 (+0000) Subject: conifer/integration/uwindsor.py: handle case where user's department is unknown. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=cd300c8788145c9b43f3c2b7656393893745f016;p=syrup%2Fmasslnc.git conifer/integration/uwindsor.py: handle case where user's department is unknown. git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@1424 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- diff --git a/conifer/integration/uwindsor.py b/conifer/integration/uwindsor.py index 92c304d..2f8d5e4 100644 --- a/conifer/integration/uwindsor.py +++ b/conifer/integration/uwindsor.py @@ -130,6 +130,8 @@ class UWindsorIntegration(EvergreenIntegration): for res in results: if not 'employeeType' in res: res['employeeType'] = 'Student' # a 99% truth! + if not 'uwinDepartment' in res: + res['uwinDepartment'] = '' display = ('%(givenName)s %(sn)s. %(employeeType)s, ' '%(uwinDepartment)s. <%(mail)s>. [%(uid)s]') % res out.append((res['uid'], display))