Univention Bugzilla – Attachment 8992 Details for
Bug 43396
Traceback: containers/cn.pathKeys not initialized
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
43396.patch (text/plain), 1.62 KB, created by
Florian Best
on 2017-07-03 16:08:57 CEST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2017-07-03 16:08:57 CEST
Size:
1.62 KB
patch
obsolete
>diff --git a/management/univention-directory-manager-modules/modules/univention/admin/handlers/container/cn.py b/management/univention-directory-manager-modules/modules/univention/admin/handlers/container/cn.py >index 655191f..b780f45 100644 >--- a/management/univention-directory-manager-modules/modules/univention/admin/handlers/container/cn.py >+++ b/management/univention-directory-manager-modules/modules/univention/admin/handlers/container/cn.py >@@ -235,11 +235,9 @@ def open(self): > for prop in self.PATH_KEYS: > self[prop] = '0' > >- for prop in self.PATH_KEYS: >- if prop in pathResult: >- for j in pathResult[prop]: >- if j == self.dn: >- self[prop] = '1' >+ for prop, attr in self.PATH_KEYS.iteritems(): >+ if any(x == self.dn for x in pathResult.get(attr, [])): >+ self[prop] = '1' > > self.save() > >diff --git a/management/univention-directory-manager-modules/modules/univention/admin/handlers/container/ou.py b/management/univention-directory-manager-modules/modules/univention/admin/handlers/container/ou.py >index ab16bdc..b3667cc 100644 >--- a/management/univention-directory-manager-modules/modules/univention/admin/handlers/container/ou.py >+++ b/management/univention-directory-manager-modules/modules/univention/admin/handlers/container/ou.py >@@ -237,11 +237,9 @@ def open(self): > for prop in self.PATH_KEYS: > self[prop] = '0' > >- for prop in self.PATH_KEYS: >- if prop in pathResult: >- for j in pathResult[prop]: >- if j == self.dn: >- self[prop] = '1' >+ for prop, attr in self.PATH_KEYS.iteritems(): >+ if any(x == self.dn for x in pathResult.get(attr, [])): >+ self[prop] = '1' > > self.save() >
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 43396
:
8367
| 8992