[open-ils-commits] r1424 - servres/trunk/conifer/integration (gfawcett)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Apr 27 09:41:09 EDT 2011
Author: gfawcett
Date: 2011-04-27 09:41:08 -0400 (Wed, 27 Apr 2011)
New Revision: 1424
Modified:
servres/trunk/conifer/integration/uwindsor.py
Log:
conifer/integration/uwindsor.py: handle case where user's department is unknown.
Modified: servres/trunk/conifer/integration/uwindsor.py
===================================================================
--- servres/trunk/conifer/integration/uwindsor.py 2011-04-27 04:21:27 UTC (rev 1423)
+++ servres/trunk/conifer/integration/uwindsor.py 2011-04-27 13:41:08 UTC (rev 1424)
@@ -130,6 +130,8 @@
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))
More information about the open-ils-commits
mailing list