Ejemplo n.º 1
0
    def defaultFilter(self, request, args):
        # We overload the default filter function to disallow *any*
        # state transitions after the object has been disabled or
        # deleted, or before it has been fully generated.
        if self.boss == None:
            raise FSM.RequestDenied(request)

        return FSM.FSM.defaultFilter(self, request, args)
 def defaultFilter(self, request, args):
     if self.craneGame == None:
         raise FSM.RequestDenied(request)
     return FSM.FSM.defaultFilter(self, request, args)