Univention Bugzilla – Attachment 6622 Details for
Bug 37584
use the 'matched' attribute of python-ldap exceptions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
37584.patch (text/plain), 820 bytes, created by
Florian Best
on 2015-01-21 17:17:59 CET
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2015-01-21 17:17:59 CET
Size:
820 bytes
patch
obsolete
>diff --git a/ucs-4.0-0/management/univention-directory-manager-modules/modules/univention/admin/uldap.py b/ucs-4.0-0/management/univention-directory-manager-modules/modules/univention/admin/uldap.py >index c7a333d..7e1eb5a 100644 >--- a/ucs-4.0-0/management/univention-directory-manager-modules/modules/univention/admin/uldap.py >+++ b/ucs-4.0-0/management/univention-directory-manager-modules/modules/univention/admin/uldap.py >@@ -79,10 +79,9 @@ > def _err2str(err): > msgs = [] > for iarg in err.args: >- if 'info' in iarg and 'desc' in iarg: >- msgs.append('%(desc)s: %(info)s' % iarg) >- elif 'desc' in iarg: >- msgs.append(str(iarg['desc'])) >+ msg = ': '.join([str(m) for m in (iarg.get('desc'), iarg.get('info'), iarg.get('matched')) if m]) >+ if msg: >+ msgs.append(msg) > return '. '.join(msgs) > > class domain:
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 37584
:
6622
|
6755
|
8220
|
10753