else:
# this one we can actually use!
print ('OK', code, title, profs, url)
+ persons = sorted(list(persons), key=lambda p: p.sn)
sections = []
for prof in persons:
for sec in prof.uwinCourseTeach:
# set up the access control lists
for uid, sec in sections:
Group.objects.get_or_create(site=site, external_id=sec)
+ group = site.group_set.get(external_id__isnull=True)
+ for uid in [p.uid for p in persons][1:]:
+ Membership.objects.get_or_create(group=group, user=ensure_user(uid),
+ role='INSTR')
# let's lookup the items.
site.item_set.filter(item_type='PHYS').delete()
count+=1
# if count > 5:
# break
+