|
Lines 38-44
from univention.lib.i18n import Translation
Link Here
|
| 38 |
from univention.management.console.log import MODULE |
38 |
from univention.management.console.log import MODULE |
| 39 |
from univention.management.console.modules.decorators import simple_response, sanitize |
39 |
from univention.management.console.modules.decorators import simple_response, sanitize |
| 40 |
from univention.management.console.modules.sanitizers import StringSanitizer |
40 |
from univention.management.console.modules.sanitizers import StringSanitizer |
| 41 |
from univention.admin.uexceptions import base as uldapBaseException |
41 |
from univention.admin.uexceptions import base as uldapBaseException, noObject |
| 42 |
import univention.admin.modules as udm_modules |
42 |
import univention.admin.modules as udm_modules |
| 43 |
|
43 |
|
| 44 |
from ucsschool.lib.schoolldap import SchoolBaseModule, LDAP_Connection, USER_READ, USER_WRITE |
44 |
from ucsschool.lib.schoolldap import SchoolBaseModule, LDAP_Connection, USER_READ, USER_WRITE |
|
Lines 228-234
class Instance(SchoolBaseModule, SchoolImport):
Link Here
|
| 228 |
schools = School.from_binddn(lo) |
228 |
schools = School.from_binddn(lo) |
| 229 |
objs = [] |
229 |
objs = [] |
| 230 |
for school in schools: |
230 |
for school in schools: |
| 231 |
objs.extend(klass.get_all(lo, school.name, filter_str=filter_str, easy_filter=True)) |
231 |
try: |
|
|
232 |
objs.extend(klass.get_all(lo, school.name, filter_str=filter_str, easy_filter=True)) |
| 233 |
except noObject: |
| 234 |
pass |
| 232 |
return [obj.to_dict() for obj in objs] |
235 |
return [obj.to_dict() for obj in objs] |
| 233 |
|
236 |
|
| 234 |
@response |
237 |
@response |