Univention Bugzilla – Bug 41811
TypeError: _filter_local_schools() takes exactly 3 arguments (2 given)
Last modified: 2016-10-04 13:24:52 CEST
>>> import ucsschool.lib.models, univention.admin.uldap >>> lo,po = univention.admin.uldap.getMachineConnection() >>> ucsschool.lib.models.School.from_binddn(lo) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/pymodules/python2.7/ucsschool/lib/models/school.py", line 421, in from_binddn return cls._filter_local_schools([school]) TypeError: _filter_local_schools() takes exactly 3 arguments (2 given)
ucs-school-lib (9.0.20-12): r71057 | Bug #41811: fix missing argument in School.from_binddn() ucs-school-lib.yaml: r71058 | YAML Bug #41811
OK: Code OK: advisory OK: manual test: root@sl-schule1:~# ucr get server/role domaincontroller_slave root@sl-schule1:~# dpkg -l python-ucs-school ii python-ucs-school 9.0.20-9.233.20160 all root@sl-schule1:~# python >>> import ucsschool.lib.models, univention.admin.uldap >>> lo, po = univention.admin.uldap.getMachineConnection() >>> ucsschool.lib.models.School.from_binddn(lo) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/pymodules/python2.7/ucsschool/lib/models/school.py", line 421, in from_binddn return cls._filter_local_schools([school]) TypeError: _filter_local_schools() takes exactly 3 arguments (2 given) >>> root@sl-schule1:~# dpkg -l python-ucs-school ii python-ucs-school 9.0.20-12.235.2016 all root@sl-schule1:~# python >>> import ucsschool.lib.models, univention.admin.uldap >>> lo, po = univention.admin.uldap.getMachineConnection() >>> ucsschool.lib.models.School.from_binddn(lo) [School(name='schule1', dn='ou=schule1,dc=uni,dc=dtr')]
UCS@school 4.1 R2 v5 has been released. http://docs.software-univention.de/changelog-ucsschool-4.1R2v5-de.html If this error occurs again, please clone this bug.