summaryrefslogtreecommitdiffstats
path: root/fevenboard.py
diff options
context:
space:
mode:
Diffstat (limited to 'fevenboard.py')
-rw-r--r--fevenboard.py60
1 files changed, 30 insertions, 30 deletions
diff --git a/fevenboard.py b/fevenboard.py
index 6aecee2..10b314e 100644
--- a/fevenboard.py
+++ b/fevenboard.py
@@ -52,33 +52,33 @@ from globalvars import gvActionFollowDestination
class FevenBoard(FportListHash):
- def __init__(self):
- FportListHash.__init__(self) # force contrustor
-
- def __str__(self):
- return "\t"+FportListHash.__str__(self)+\
- "FevenBoard - (null)\n"
-
- def receive_evenData(self,evenData):
- """/** Receive the evenData and apply the action to know what to do with */"""
- action = evenData.getCurrentDestination().getAction()
-
- if action.equals(gvActionDestination1Data):
- if evenData.selectNextDestination() != RET_OK:
- evenData.definePortAction(ACT_ERROR)
- else:
- dataPresent = self.listHash.addOrRemove(evenData)
- if dataPresent <> None:
- if action.equals(gvActionFollowDestination):
- provData = dataPresent
- dataPresent = evenData
- evenData = provData
- evenData.setEvenDataB(dataPresent)
- if evenData.selectNextDestination() != RET_OK:
- evenData.definePortAction(ACT_ERROR)
- self.sendEvenData(evenData)
- else:
- if action.equals(gvActionWait):
- print "NOT IMPLEMENTED YET"
- return RET_OK
-
+ def __init__(self):
+ FportListHash.__init__(self) # force contrustor
+
+ def __str__(self):
+ return "\t"+FportListHash.__str__(self)+\
+ "FevenBoard - (null)\n"
+
+ def receive_evenData(self,evenData):
+ """/** Receive the evenData and apply the action to know what to do with */"""
+ action = evenData.getCurrentDestination().getAction()
+
+ if action.equals(gvActionDestination1Data):
+ if evenData.selectNextDestination() != RET_OK:
+ evenData.definePortAction(ACT_ERROR)
+ else:
+ dataPresent = self.listHash.addOrRemove(evenData)
+ if dataPresent <> None:
+ if action.equals(gvActionFollowDestination):
+ provData = dataPresent
+ dataPresent = evenData
+ evenData = provData
+ evenData.setEvenDataB(dataPresent)
+ if evenData.selectNextDestination() != RET_OK:
+ evenData.definePortAction(ACT_ERROR)
+ self.sendEvenData(evenData)
+ else:
+ if action.equals(gvActionWait):
+ print "NOT IMPLEMENTED YET"
+ return RET_OK
+