diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-03-28 17:23:12 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-03-28 17:23:12 -0400 |
commit | af4f5696e9fa1a800a45289931ed147b7fb6f5ed (patch) | |
tree | 0a7daff06bb922489f811d11a86247f8837ff949 /cobbler | |
parent | 08ca3dda388b39b02f58121803ca95e8c8d09ac3 (diff) | |
download | third_party-cobbler-af4f5696e9fa1a800a45289931ed147b7fb6f5ed.tar.gz third_party-cobbler-af4f5696e9fa1a800a45289931ed147b7fb6f5ed.tar.xz third_party-cobbler-af4f5696e9fa1a800a45289931ed147b7fb6f5ed.zip |
Add owners list to WebUI pages, also customize function for saving
lists to avoid extra whitespace on comma delimited inputs.
Diffstat (limited to 'cobbler')
-rw-r--r-- | cobbler/utils.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cobbler/utils.py b/cobbler/utils.py index 9c770d0..4d2b635 100644 --- a/cobbler/utils.py +++ b/cobbler/utils.py @@ -239,7 +239,9 @@ def input_string_or_list(options,delim=","): elif type(options) == list: return options elif type(options) == str: - tokens = options.split(",") + tokens = options.split(delim) + if delim == ",": + tokens = [t.lstrip().rstrip() for t in tokens] return tokens else: raise CX(_("invalid input type")) |