diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-04-13 21:16:12 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-04-13 21:16:12 +0200 |
commit | eeb9927c89d6d2425a74c33ff8773bceba39af1c (patch) | |
tree | e5e770fc041fa27b6e13a78dc9c3dc3f75c7c213 /fportbkpevendata.py | |
parent | 99561b834dbd9d52b83aa7b0fb980431fa1aa056 (diff) | |
download | pyevenja-master.zip pyevenja-master.tar.gz |
Diffstat (limited to 'fportbkpevendata.py')
-rw-r--r-- | fportbkpevendata.py | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/fportbkpevendata.py b/fportbkpevendata.py index 3533f82..cfaa39b 100644 --- a/fportbkpevendata.py +++ b/fportbkpevendata.py @@ -34,33 +34,33 @@ from fport import Fport from evenjastrings import ACT_ERROR class FportBkpEvenData(Fport): - """This class is a wrapper arounf Fport class for security purpose""" + """This class is a wrapper arounf Fport class for security purpose""" - def __init__(self): - Fport.__init__(self) # force constructor - self.evenDataA = None #/** Backup of the evenDatas that need to be sends by sendEvenData */ + def __init__(self): + Fport.__init__(self) # force constructor + self.evenDataA = None #/** Backup of the evenDatas that need to be sends by sendEvenData */ - def __str__(self): - return "\t"+Fport.__str__(self)+\ - "FportBkpEvenData - evenDataA : "+str(self.evenDataA)+"\n" + def __str__(self): + return "\t"+Fport.__str__(self)+\ + "FportBkpEvenData - evenDataA : "+str(self.evenDataA)+"\n" - def justDoIt(self,evenData): - """/** Methods called by Fstarter */""" - self.evenDataA = evenData - ret = Fport.justDoIt(self,evenData) - if self.evenDataA: - self.evenDataA.definePortAction(ACT_ERROR) - self.sendEvenData(self.evenDataA) - return ret - - def sendEvenData(self,evenData,portDestination = None): - """/** Methods to enable all ports to sends evenDatas to a port */""" - if (self.evenDataA == evenData): - self.evenDataA = None - Fport.sendEvenData(self,evenData,portDestination) - - def sendEvenDataSys(self,evenData,portDestination = None): - """/** Methods to enable all ports to sends evenDatas to a port */""" - if (self.evenDataA == evenData): - self.evenDataA = None - Fport.sendEvenDataSys(self,evenData,portDestination) + def justDoIt(self,evenData): + """/** Methods called by Fstarter */""" + self.evenDataA = evenData + ret = Fport.justDoIt(self,evenData) + if self.evenDataA: + self.evenDataA.definePortAction(ACT_ERROR) + self.sendEvenData(self.evenDataA) + return ret + + def sendEvenData(self,evenData,portDestination = None): + """/** Methods to enable all ports to sends evenDatas to a port */""" + if (self.evenDataA == evenData): + self.evenDataA = None + Fport.sendEvenData(self,evenData,portDestination) + + def sendEvenDataSys(self,evenData,portDestination = None): + """/** Methods to enable all ports to sends evenDatas to a port */""" + if (self.evenDataA == evenData): + self.evenDataA = None + Fport.sendEvenDataSys(self,evenData,portDestination) |