aboutsummaryrefslogtreecommitdiff
path: root/behaviors/VerticalBar.py
diff options
context:
space:
mode:
authorGravatar rcoh <rcoh@mit.edu>2011-02-14 01:51:43 -0500
committerGravatar rcoh <rcoh@mit.edu>2011-02-14 01:51:43 -0500
commit83242972c09032eb89dd547f3ff3c4dcc2693555 (patch)
tree62fdb611afbb37ff90f0356cac5828f48ec50f60 /behaviors/VerticalBar.py
parent9c76b22071259fe8195eaf5bd846219fc2cade4d (diff)
Fixed some threading bugs. Modified LightInstallation.py so that Behaviors are *Only* run if they
are marked to be rendered. Fixed a threading issue tied to the component registry.
Diffstat (limited to 'behaviors/VerticalBar.py')
-rw-r--r--behaviors/VerticalBar.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/behaviors/VerticalBar.py b/behaviors/VerticalBar.py
index e1a67fe..66c8e56 100644
--- a/behaviors/VerticalBar.py
+++ b/behaviors/VerticalBar.py
@@ -2,11 +2,11 @@ from operationscore.Behavior import *
class VerticalBar(Behavior):
def processResponse(self, inputs, recurs):
-
ret = []
+ inputs = list(inputs)
for inputset in inputs:
#import pdb; pdb.set_trace()
-
+ inputset = dict(inputset)
if 'xLoc' not in inputset:
inputset['xLoc'] = inputset['Location'][0]
xLoc = inputset['xLoc']
@@ -19,12 +19,5 @@ class VerticalBar(Behavior):
inputset['Location'] = condition
ret.append(inputset)
-
return (ret, [])
- def setLastOutput(self, output):
-
- coutput = Behavior.deepCopyPacket(output)
- for data in coutput:
- data['Location'] = data['xLoc']
- return coutput