summaryrefslogtreecommitdiffstats
path: root/fevenboard.py
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-04-13 21:16:12 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-04-13 21:16:12 +0200
commiteeb9927c89d6d2425a74c33ff8773bceba39af1c (patch)
treee5e770fc041fa27b6e13a78dc9c3dc3f75c7c213 /fevenboard.py
parent99561b834dbd9d52b83aa7b0fb980431fa1aa056 (diff)
downloadpyevenja-eeb9927c89d6d2425a74c33ff8773bceba39af1c.zip
pyevenja-eeb9927c89d6d2425a74c33ff8773bceba39af1c.tar.gz
reformat filesHEADmaster
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
+