Univention Bugzilla – Attachment 9314 Details for
Bug 45842
Simplify user options (posix, samba, kerberos)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
print all possible option combinations
option_combinations.py (text/x-python), 320 bytes, created by
Florian Best
on 2017-12-11 15:15:07 CET
(
hide
)
Description:
print all possible option combinations
Filename:
MIME Type:
Creator:
Florian Best
Created:
2017-12-11 15:15:07 CET
Size:
320 bytes
patch
obsolete
>import itertools >options = ['posix', 'samba', 'kerberos', 'mail', 'pki', 'person', 'ldap_pwd'] > >length = range(1, 1 + len(options)) >combinations = tuple(itertools.chain(*(itertools.combinations(options, i) for i in length))) >print length, len(combinations) > >print '\n'.join([', '.join(x) for x in sorted(combinations)])
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 Raw
Actions:
View
Attachments on
bug 45842
: 9314 |
9320
|
9322
|
9323
|
9376
|
9397
|
9425