From cd300c8788145c9b43f3c2b7656393893745f016 Mon Sep 17 00:00:00 2001 From: gfawcett Date: Wed, 27 Apr 2011 13:41:08 +0000 Subject: [PATCH] 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 --- conifer/integration/uwindsor.py | 2 ++ 1 file changed, 2 insertions(+) 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)) -- 2.11.0