Fix the SSO Jabber group handling to actually work, and reduce uneeded calls to the XMLRPC api

This commit is contained in:
2011-05-13 11:36:17 +01:00
parent 588e5ad14d
commit 08cbd72045
2 changed files with 9 additions and 5 deletions

View File

@@ -89,7 +89,9 @@ def update_service_groups(user_id):
for service in ServiceAccount.objects.filter(user=user_id, active=True).select_related('service__api'):
api = service.service.api_class
try:
print "Updating %s" % service
api.update_groups(service.service_uid, service.user.groups.all(), service.character)
print "Done"
except:
print "Error updating %s %s" % (service.service, service.service_uid)
pass