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