Univention Bugzilla – Attachment 9692 Details for
Bug 47885
Performance issues in umc schoolusers module
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
open(loadGroups=False)
open_loadGroups_False.patch (text/plain), 1.50 KB, created by
Daniel Tröder
on 2018-10-05 08:56:22 CEST
(
hide
)
Description:
open(loadGroups=False)
Filename:
MIME Type:
Creator:
Daniel Tröder
Created:
2018-10-05 08:56:22 CEST
Size:
1.50 KB
patch
obsolete
>diff --git a/ucs-school-lib/python/models/base.py b/ucs-school-lib/python/models/base.py >index 082fb6009..901db6c0a 100644 >--- a/ucs-school-lib/python/models/base.py >+++ b/ucs-school-lib/python/models/base.py >@@ -713,7 +713,7 @@ class UCSSchoolHelperAbstractClass(object): > except (noObject, IndexError): > self._udm_obj = None > else: >- self._udm_obj.open() >+ self._udm_obj.open(False) > self._udm_obj_searched = True > return self._udm_obj > >@@ -781,7 +781,7 @@ class UCSSchoolHelperAbstractClass(object): > logger.debug('Getting all %s of %s with filter %r', cls.__name__, school, complete_filter) > ret = [] > for udm_obj in cls.lookup(lo, school, complete_filter, superordinate=superordinate): >- udm_obj.open() >+ udm_obj.open(False) > try: > ret.append(cls.from_udm_obj(udm_obj, school, lo)) > except NoObject: >@@ -835,7 +835,7 @@ class UCSSchoolHelperAbstractClass(object): > # while Group must be converted into ComputerRoom, etc. and User must be converted into Student, etc. > raise WrongModel(udm_obj.dn, klass, cls) > return klass.from_udm_obj(udm_obj, school, lo) >- udm_obj.open() >+ udm_obj.open(False) > attrs = {'school': cls.get_school_from_dn(udm_obj.dn) or school} # TODO: is this adjustment okay? > if cls.supports_schools(): > attrs['schools'] = udm_obj['school'] >@@ -919,7 +919,7 @@ class UCSSchoolHelperAbstractClass(object): > if len(objs) > 1: > raise MultipleObjectsError(objs) > obj = objs[0] >- obj.open() >+ obj.open(False) > return obj > > @classmethod
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 47885
:
9691
| 9692