Univention Bugzilla – Attachment 7633 Details for
Bug 41172
udm-cli --remove doesn't work with singlevalue attribute name
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
make udm cope with wrong command (remove instead of set)
Bug_41172_remove_singleValue.patch (text/plain), 904 bytes, created by
Daniel Tröder
on 2016-05-02 09:13:17 CEST
(
hide
)
Description:
make udm cope with wrong command (remove instead of set)
Filename:
MIME Type:
Creator:
Daniel Tröder
Created:
2016-05-02 09:13:17 CEST
Size:
904 bytes
patch
obsolete
>Index: management/univention-directory-manager-modules/modules/univention/admincli/admin.py >=================================================================== >--- management/univention-directory-manager-modules/modules/univention/admincli/admin.py (Revision 68949) >+++ management/univention-directory-manager-modules/modules/univention/admincli/admin.py (Arbeitskopie) >@@ -297,7 +297,9 @@ > out.append('E: Invalid Syntax: %s' % str(errmsg)) > if remove: > for key, value in remove.items(): >- if univention.admin.syntax.is_syntax( module.property_descriptions[key].syntax, univention.admin.syntax.complex ): >+ if not module.property_descriptions[key].multivalue: >+ object[key] = [] >+ elif univention.admin.syntax.is_syntax( module.property_descriptions[key].syntax, univention.admin.syntax.complex ): > if value: > for i in range(0,len(value)): > test_val=value[i].split('"')
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 41172
:
7633
|
7669
|
7740