conifer/integration/uwindsor.py: handle case where user's department is unknown.
authorgfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Wed, 27 Apr 2011 13:41:08 +0000 (13:41 +0000)
committergfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Wed, 27 Apr 2011 13:41:08 +0000 (13:41 +0000)
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@1424 6d9bc8c9-1ec2-4278-b937-99fde70a366f

conifer/integration/uwindsor.py

index 92c304d..2f8d5e4 100644 (file)
@@ -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))