View | Details | Raw Unified | Return to bug 56424
Collapse All | Expand All

(-)apple-school-manager/modules/univention/asm/models/classes.py (-3 / +3 lines)
 Lines 154-165   def from_dn(cls, dn, *args, **kwargs): # type: (AnyStr, *Any, **Any) -> AsmClas Link Here 
154
				instructor_id = teachers[0]
154
				instructor_id = teachers[0]
155
				instructor_id_2 = teachers[1]
155
				instructor_id_2 = teachers[1]
156
				instructor_id_3 = teachers[2]
156
				instructor_id_3 = teachers[2]
157
				additional_instructor_ids = teachers[3:15]
157
				additional_instructor_ids = teachers[3:<NEW LIMIT>]
158
			except IndexError:
158
			except IndexError:
159
				pass
159
				pass
160
			if len(teachers) > 15:
160
			if len(teachers) > <NEW-LIMIT>:
161
				logger.warn(
161
				logger.warn(
162
					'Class %r has more than 15 teachers. Only 15 will be synchronized. This is a limitation of the '
162
					'Class %r has more than <NEW-LIMIT> teachers. Only <NEW-LIMIT> will be synchronized. This is a limitation of the '
163
					'Apple School Manager service.', school_class.name)
163
					'Apple School Manager service.', school_class.name)
164
		return cls(
164
		return cls(
165
			class_id=school_class.name,
165
			class_id=school_class.name,

Return to bug 56424