Package SmootLight :: Package behaviors :: Module VerticalBar
[hide private]
[frames] | no frames]

Source Code for Module SmootLight.behaviors.VerticalBar

 1  from operationscore.Behavior import * 
2 -class VerticalBar(Behavior):
3
4 - def processResponse(self, inputs, recurs):
5 ret = [] 6 inputs = list(inputs) 7 for inputset in inputs: 8 inputset = dict(inputset) 9 if 'xLoc' not in inputset: 10 inputset['xLoc'] = inputset['Location'][0] 11 xLoc = inputset['xLoc'] 12 13 condition = '{x} == ' + str(xLoc) 14 15 if self['Combine']: 16 inputset['Location'] += ',' + condition 17 else: 18 inputset['Location'] = condition 19 20 ret.append(inputset) 21 return (ret, [])
22