missed a place where I had to rename open -> unlock
authorRalf Jung <post@ralfj.de>
Tue, 15 Oct 2013 08:36:56 +0000 (10:36 +0200)
committerRalf Jung <post@ralfj.de>
Tue, 15 Oct 2013 08:36:56 +0000 (10:36 +0200)
statemachine.py

index f2fb8178a608b9623a1f08781d63e2a0d5971813..f6b45dd1cbbd8112a6e6db89fb4f92a8a9da0b23 100644 (file)
@@ -157,13 +157,13 @@ class StateMachine():
                        self.notify(False)
                        return StateMachine.StateZu(self.state_machine)
        
                        self.notify(False)
                        return StateMachine.StateZu(self.state_machine)
        
-       class AbstractStateWhereOpeningIsRedundant(AbstractUnlockedState):
+       class AbstractStateWhereUnlockingIsRedundant(AbstractUnlockedState):
                def handle_cmd_unlock_event(self, callback):
                        callback("299 redundant: Space seems to be already open. Still processing your request tough.")
                        logger.info("StateMachine: Received UNLOCK command in %s. This should not be necessary." % self.__class__.__name__)
                        self.actor().act(Actor.CMD_UNLOCK)
        
                def handle_cmd_unlock_event(self, callback):
                        callback("299 redundant: Space seems to be already open. Still processing your request tough.")
                        logger.info("StateMachine: Received UNLOCK command in %s. This should not be necessary." % self.__class__.__name__)
                        self.actor().act(Actor.CMD_UNLOCK)
        
-       class StateAboutToOpen(AbstractStateWhereOpeningIsRedundant):
+       class StateAboutToOpen(AbstractStateWhereUnlockingIsRedundant):
                def __init__(self, sm):
                        super().__init__(sm, ABOUTOPEN_NERVLIST)
                def handle_pins_event(self):
                def __init__(self, sm):
                        super().__init__(sm, ABOUTOPEN_NERVLIST)
                def handle_pins_event(self):
@@ -172,7 +172,7 @@ class StateMachine():
                                return StateMachine.StateAuf(self.state_machine)
                        return super().handle_pins_event()
        
                                return StateMachine.StateAuf(self.state_machine)
                        return super().handle_pins_event()
        
-       class StateAuf(AbstractStateWhereOpeningIsRedundant):
+       class StateAuf(AbstractStateWhereUnlockingIsRedundant):
                def __init__(self,sm):
                        super().__init__(sm)
                        self.last_buzzed = None
                def __init__(self,sm):
                        super().__init__(sm)
                        self.last_buzzed = None