Converts the shell step dictionary in to one that contains all the entries for the basic instruction.
(stepdict)
| 1351 | return i1.execute() |
| 1352 | |
| 1353 | def _makeStepParams(stepdict): |
| 1354 | """ |
| 1355 | Converts the shell step dictionary in to one that contains all the entries |
| 1356 | for the basic instruction. |
| 1357 | |
| 1358 | """ |
| 1359 | outDict = {} |
| 1360 | outDict['stepMethod'] = stepdict['method'] |
| 1361 | try: |
| 1362 | outDict['stepStart'] = stepdict['start'] |
| 1363 | except KeyError: |
| 1364 | pass |
| 1365 | |
| 1366 | try: |
| 1367 | outDict['stepStop'] = stepdict['stop'] |
| 1368 | except KeyError: |
| 1369 | pass |
| 1370 | try: |
| 1371 | outDict['stepNum'] = stepdict['num'] |
| 1372 | except KeyError: |
| 1373 | pass |
| 1374 | try: |
| 1375 | if type(stepdict['params']) == str: |
| 1376 | outDict['stepVar'] = stepdict['params'] |
| 1377 | elif type(stepdict['params']) == list: |
| 1378 | outDict['stepVars'] = stepdict['params'] |
| 1379 | except KeyError: |
| 1380 | pass |
| 1381 | try: |
| 1382 | if type(stepdict['values']) == list: |
| 1383 | if len(stepdict['values']) > 0: |
| 1384 | if type(stepdict['values'][0]) == list: |
| 1385 | outDict['Array'] = stepdict['values'] |
| 1386 | outDict['stepList'] = stepdict['values'] |
| 1387 | except KeyError: |
| 1388 | pass |
| 1389 | return outDict |
no outgoing calls
no test coverage detected