Exemple #1
0
 def __init__(self, node, stat_msg=None, is_reset=False):
     first = False
     if self.master_node is None:
         self.master_node = node
         self.stat_msg = stat_msg
         self.post = ContextSeeker(forward=[L(S(["cancel"], lambda: self.reset_node(), consume=False), 
                                              S([self.master_node.spec], lambda: None, consume=False))], 
                                   rspec=self.master_node.spec)
         first = True
         SelfModifyingRule.__init__(self, self.master_node.spec, refresh=False)
     
     self.refresh(node, first, is_reset)
Exemple #2
0
 def __init__(self, node, nexus, is_reset=False):
     first = False
     if self.master_node is None:
         self.master_node = node
         self.nexus = nexus
         '''self.post is added to every entry in the mapping; 
         its purpose is to handle cancels; if it detects another of itself, 
         it does nothing; 
         
         but looking forward, won't it never find itself? 
         how is it that the node isn't constantly getting reset? '''
         self.post = ContextSeeker(forward=[L(S(["cancel"], lambda: self.reset_node(), consume=False), 
                                              S([self.master_node.spec], lambda: None, consume=False))], 
                                   rspec=self.master_node.spec)
         self.post.set_nexus(nexus)
         first = True
         SelfModifyingRule.__init__(self, self.master_node.spec, refresh=False)
     
     self.refresh(node, first, is_reset)
Exemple #3
0
    def __init__(self, node, nexus, is_reset=False):
        first = False
        if self.master_node is None:
            self.master_node = node
            self.nexus = nexus
            '''self.post is added to every entry in the mapping; 
            its purpose is to handle cancels; if it detects another of itself, 
            it does nothing; 
            
            but looking forward, won't it never find itself? 
            how is it that the node isn't constantly getting reset? '''
            self.post = ContextSeeker(forward=[
                L(S(["cancel"], lambda: self.reset_node(), consume=False),
                  S([self.master_node.spec], lambda: None, consume=False))
            ],
                                      rspec=self.master_node.spec)
            self.post.set_nexus(nexus)
            first = True
            SelfModifyingRule.__init__(self,
                                       self.master_node.spec,
                                       refresh=False)

        self.refresh(node, first, is_reset)
Exemple #4
0
 def __init__(self, nexus):
     SelfModifyingRule.__init__(self)
     self.nexus = nexus
Exemple #5
0
 def __init__(self, nexus):
     SelfModifyingRule.__init__(self)
     self.nexus = nexus