Univention Bugzilla – Attachment 7757 Details for
Bug 40728
ucr set doesn't set local variable if exists already in another UCR scope
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
40728_1.patch (text/plain), 941 bytes, created by
Jürn Brodersen
on 2016-06-21 10:06:28 CEST
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Jürn Brodersen
Created:
2016-06-21 10:06:28 CEST
Size:
941 bytes
patch
obsolete
>Index: python/univention/config_registry/frontend.py >=================================================================== >--- python/univention/config_registry/frontend.py (Revision 70411) >+++ python/univention/config_registry/frontend.py (Arbeitskopie) >@@ -142,10 +142,10 @@ > sep = min(sep_set, sep_def) > key = arg[0:sep] > value = arg[sep + 1:] >- old = ucr.get(key) >- if (old is None or sep == sep_set) and validate_key(key): >+ key_exists = ucr.has_key(key, write_registry_only=True) >+ if (not key_exists or sep == sep_set) and validate_key(key): > if not quiet: >- if ucr.has_key(key, write_registry_only=True): >+ if key_exists: > print 'Setting %s' % key > else: > print 'Create %s' % key >@@ -152,7 +152,7 @@ > changes[key] = value > else: > if not quiet: >- if old is not None: >+ if key_exists: > print 'Not updating %s' % key > else: > print 'Not setting %s' % key
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 40728
: 7757 |
7759