def finishRules(self):
        self.notify.debug('finishRules')
        if self.isLocalToonPlaying:
            DistributedPartyActivity.finishRules(self)

        if self.activityFSM.getCurrentOrNextState() == 'WaitForEnough':
            DistributedPartyActivity.finishRules(self)
Ejemplo n.º 2
0
    def finishRules(self):
        """
        The clients have finished reading the rules and we're going to the active state.
        Or one the clients dropped and we're back to WaitToStart
        """
        self.notify.debug("finishRules")

        if self.isLocalToonPlaying:
            DistributedPartyActivity.finishRules(self)  # clean up instructions

        # check for a non-standard transition and do additional cleanup as needed
        if self.activityFSM.getCurrentOrNextState() == "WaitForEnough":
            DistributedPartyActivity.finishRules(self)  # clean up instructions
 def finishRules(self):
     self.notify.debug('finishRules')
     if self.isLocalToonPlaying:
         DistributedPartyActivity.finishRules(self)
     if self.activityFSM.getCurrentOrNextState() == 'WaitForEnough':
         DistributedPartyActivity.finishRules(self)