Univention Bugzilla – Attachment 10927 Details for
Bug 53581
Appcenter [python3]: RuntimeError: dictionary changed size during iteration
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
PoC fix
53581_proposed.patch (text/plain), 1.28 KB, created by
Jürn Brodersen
on 2022-03-21 18:42:26 CET
(
hide
)
Description:
PoC fix
Filename:
MIME Type:
Creator:
Jürn Brodersen
Created:
2022-03-21 18:42:26 CET
Size:
1.28 KB
patch
obsolete
>diff --git a/management/univention-directory-manager-modules/modules/univention/admin/handlers/__init__.py b/management/univention-directory-manager-modules/modules/univention/admin/handlers/__init__.py >index 8b2bde6157..306a47cab4 100644 >--- a/management/univention-directory-manager-modules/modules/univention/admin/handlers/__init__.py >+++ b/management/univention-directory-manager-modules/modules/univention/admin/handlers/__init__.py >@@ -206,8 +206,6 @@ class simpleLdap(object): > m = univention.admin.modules.get(self.module) > if not hasattr(self, 'mapping'): > self.mapping = getattr(m, 'mapping', None) >- if not hasattr(self, 'descriptions'): >- self.descriptions = getattr(m, 'property_descriptions', None) > > self.oldattr = {} # type: _Attributes > if attributes: >@@ -234,6 +232,15 @@ class simpleLdap(object): > > self._validate_superordinate(False) > >+ @property >+ def descriptions(self): >+ m = univention.admin.modules.get(self.module) >+ return getattr(self, '__descriptions', getattr(m, 'property_descriptions', None)) >+ >+ @descriptions.setter >+ def descriptions(self, descriptions): >+ self.__descriptions = descriptions >+ > def save(self): # type: () -> None > """Saves the current internal object state as old state for later comparison when e.g. modifying this object. >
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 53581
: 10927 |
10928