Univention Bugzilla – Attachment 11105 Details for
Bug 56424
Allow more than 15 teachers in a class
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Presumably affected code
new-teacher-limit.patch (text/plain), 1.03 KB, created by
Jan-Luca Kiok
on 2023-08-11 18:20 CEST
(
hide
)
Description:
Presumably affected code
Filename:
MIME Type:
Creator:
Jan-Luca Kiok
Created:
2023-08-11 18:20 CEST
Size:
1.03 KB
patch
obsolete
>diff --git apple-school-manager/modules/univention/asm/models/classes.py apple-school-manager/modules/univention/asm/models/classes.py >index fd972ec..48cb477 100644 >--- apple-school-manager/modules/univention/asm/models/classes.py >+++ apple-school-manager/modules/univention/asm/models/classes.py >@@ -154,12 +154,12 @@ def from_dn(cls, dn, *args, **kwargs): # type: (AnyStr, *Any, **Any) -> AsmClas > instructor_id = teachers[0] > instructor_id_2 = teachers[1] > instructor_id_3 = teachers[2] >- additional_instructor_ids = teachers[3:15] >+ additional_instructor_ids = teachers[3:<NEW LIMIT>] > except IndexError: > pass >- if len(teachers) > 15: >+ if len(teachers) > <NEW-LIMIT>: > logger.warn( >- 'Class %r has more than 15 teachers. Only 15 will be synchronized. This is a limitation of the ' >+ 'Class %r has more than <NEW-LIMIT> teachers. Only <NEW-LIMIT> will be synchronized. This is a limitation of the ' > 'Apple School Manager service.', school_class.name) > return cls( > class_id=school_class.name,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 56424
: 11105