|
|
@ -221,7 +221,7 @@ class BaseLoader(File): |
|
|
|
if type(value) in (list, tuple): |
|
|
|
if type(value) in (list, tuple): |
|
|
|
_value = value |
|
|
|
_value = value |
|
|
|
else: |
|
|
|
else: |
|
|
|
_value = split_csv(value) |
|
|
|
_value = split_csv(value) if "," in value else split_csv(value, separator=" ") |
|
|
|
elif key in ("func", "function"): |
|
|
|
elif key in ("func", "function"): |
|
|
|
_key = "function" |
|
|
|
_key = "function" |
|
|
|
_value = value |
|
|
|
_value = value |
|
|
@ -230,19 +230,19 @@ class BaseLoader(File): |
|
|
|
if type(value) in (list, tuple): |
|
|
|
if type(value) in (list, tuple): |
|
|
|
_value = value |
|
|
|
_value = value |
|
|
|
else: |
|
|
|
else: |
|
|
|
_value = split_csv(value) |
|
|
|
_value = split_csv(value) if "," in value else split_csv(value, separator=" ") |
|
|
|
elif key == "items": |
|
|
|
elif key == "items": |
|
|
|
_key = "items" |
|
|
|
_key = "items" |
|
|
|
if type(value) in (list, tuple): |
|
|
|
if type(value) in (list, tuple): |
|
|
|
_value = value |
|
|
|
_value = value |
|
|
|
else: |
|
|
|
else: |
|
|
|
_value = split_csv(value) |
|
|
|
_value = split_csv(value) if "," in value else split_csv(value, separator=" ") |
|
|
|
elif key == "tags": |
|
|
|
elif key == "tags": |
|
|
|
_key = "tags" |
|
|
|
_key = "tags" |
|
|
|
if type(value) in (list, tuple): |
|
|
|
if type(value) in (list, tuple): |
|
|
|
_value = value |
|
|
|
_value = value |
|
|
|
else: |
|
|
|
else: |
|
|
|
_value = split_csv(value) |
|
|
|
_value = split_csv(value) if "," in value else split_csv(value, separator=" ") |
|
|
|
else: |
|
|
|
else: |
|
|
|
_key = key |
|
|
|
_key = key |
|
|
|
_value = smart_cast(value) |
|
|
|
_value = smart_cast(value) |
|
|
|