Also map "Collaboration" to the same as "Affiliate" (Staff).
Signed-off-by: Dan Scott <dscott@laurentian.ca>
'proxy': None,
'retired': None,
'affiliate': 115,
+ 'collaboration': 115,
'visitor': 113
}
self.affiliation = 'gr'
else:
self.affiliation = 'ug'
+ else:
+ self.affiliation = affiliation
else:
- self.affiliation = affiliation
+ print >> sys.stderr, "Affiliation '%s' not mapped to a profile " \
+ "for user %s" % (affiliation, self.ldap_atts)
if hasattr(self, 'affiliation'):
- return profile_map[affiliation]
+ return profile_map[self.affiliation]
if 'empl' in self.cname.lower():
affiliation = 'staff'