|
@@ -78,6 +78,12 @@ def _check_type(value):
|
|
|
if not isinstance(value, (int, long, float, str, unicode, bool)):
|
|
|
raise UnsupportedValue("%s : %s" % (value, str(type(value))))
|
|
|
|
|
|
+def _check_type_list(value):
|
|
|
+ if isinstance(value, list):
|
|
|
+ [_check_type(i) for i in value]
|
|
|
+ else:
|
|
|
+ _check_type(value)
|
|
|
+
|
|
|
def _dict_to_list(python_dict):
|
|
|
lst = []
|
|
|
for k, v in python_dict.items():
|
|
@@ -923,7 +929,7 @@ def service_get(port):
|
|
|
|
|
|
def service_set(port, value):
|
|
|
"""Set a value on a specified port."""
|
|
|
- _check_type(value)
|
|
|
+ _check_type_list(value)
|
|
|
_goto_mode(MODE_SERVICE)
|
|
|
|
|
|
_input(value, port=port)
|