Commit bfca003b authored by matjaz's avatar matjaz

Latino: couple of bugs corrected & integer range is now c# functionality

parent 4d208847
......@@ -7603,13 +7603,13 @@
"post_interact_action": "",
"user": null,
"visualization_view": "",
"action": "create_range",
"action": "latino_generate_integer_range",
"wsdl_method": "",
"wsdl": "",
"interactive": false,
"has_progress_bar": false,
"order": 5,
"description": "Automatically generated widget from function GenerateIntegerRange_PYTHON in package latino. The original function signature: GenerateIntegerRange_PYTHON."
"description": "Automatically generated widget from function GenerateIntegerRange in package latino. The original function signature: GenerateIntegerRange."
}
},
{
......@@ -7672,7 +7672,7 @@
"fields": {
"widget": 842764734,
"name": "Range",
"short_name": "ary",
"short_name": "lst",
"variable": "range",
"uid": "8eb96f55-f038-e517-5e11-8dbda6295b0f",
"order": 1,
......
......@@ -13,6 +13,16 @@ def latino_flatten_object_to_string_array(inputDict):
outputDict['flatData'] = execResultPy
return outputDict
def latino_generate_integer_range(inputDict):
_start = ToInt(inputDict['start'])
_stop = ToInt(inputDict['stop'])
_step = ToInt(inputDict['step'])
execResult = LatinoCF.GenerateIntegerRange(_start, _stop, _step)
execResultPy = ToPyObj(execResult)
outputDict = {}
outputDict['range'] = execResultPy
return outputDict
def latino_load_adc(inputDict):
_file = ToString(inputDict['file'])
_tabSeparatedTitle = ToBool(inputDict['tabSeparatedTitle'])
......
......@@ -38,9 +38,3 @@ def python_snippet(input_dict):
exec(input_dict['pycode'])
output_dict['out'] = out1
return output_dict
def create_range(input_dict):
rng = range(ToInt(input_dict['start']), ToInt(input_dict['stop']), ToInt(input_dict['step']))
return {'range':rng }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment