Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(112)  |  Call(112)  |  Derive(0)  |  Import(0)

src/k/a/kamaelia-HEAD/Code/Python/Kamaelia/Kamaelia/Apps/SocialBookmarks/WithSSLProxySupport.py   kamaelia(Download)
    def anyStopped(self):
        anystopped = False
        for child in self.childComponents():
            if child._isStopped():
                # At least one has stopped
                links.append(L)
 
                if self.components[source[0]] not in self.childComponents():
                    if self.components[source[0]] != self:
                        self.link((self.components[source[0]], "signal"), (self, "_control"))
                        self.addChildren( self.components[source[0]])
                        self.components[source[0]].activate()
 
                if self.components[sink[0]] not in self.childComponents():
    def shutdownChildComponents(self, message):
        # Print( "Shutting Down Child Components")
        for child in self.childComponents():
 
             if child == self.item:
                            dontcontinue = True
 
                        for child in self.childComponents():
                            # Check assumption
                            if child == self.item:

src/k/a/kamaelia-HEAD/Code/Python/Kamaelia/Kamaelia/Chassis/PAR.py   kamaelia(Download)
          self.send(producerFinished(), "signal")
 
      for child in self.childComponents():
          self.removeChild(child)   # deregisters linkages for 
 
   def childrenDone(self):
       """Unplugs any children that have terminated, and returns true if there are no
          running child components left (ie. their microproceses have finished)
       """
       for child in self.childComponents():
               self.removeChild(child)   # deregisters linkages for us
 
       return 0==len(self.childComponents())
 
__kamaelia_components__  = ( PAR, )

src/k/a/kamaelia-HEAD/Sketches/MPS/ProxyHTTP/https.py   kamaelia(Download)
    def anyStopped(self):
        for child in self.childComponents():
            if child._isStopped():
                # At least one has stopped
                return True
                links.append(L)
 
                if self.components[source[0]] not in self.childComponents():
                    self.link((self.components[source[0]], "signal"), (self, "_control"))
                    self.addChildren( self.components[source[0]])
                    self.components[source[0]].activate()
 
                if self.components[sink[0]] not in self.childComponents():
    def shutdownChildComponents(self, message):
        for child in self.childComponents():
 
             if child == self.item:
                 continue
                        dontcontinue = True
 
                    for child in self.childComponents():
                        # Check assumption
                        if child == self.item:

src/k/a/kamaelia-HEAD/Code/Python/Kamaelia/Kamaelia/Util/Backplane.py   kamaelia(Download)
        running child components left (ie. their microproceses have finished)
        """
        for child in self.childComponents():
            if child._isStopped():
                self.removeChild(child)   # deregisters linkages for us
 
        return 0==len(self.childComponents())
        running child components left (ie. their microproceses have finished)
        """
        for child in self.childComponents():
            if child._isStopped():
                self.removeChild(child)   # deregisters linkages for us
 
        return 0==len(self.childComponents())

src/k/a/kamaelia-HEAD/Sketches/MPS/Axon.DSL/Axon/DSL/Carousel.py   kamaelia(Download)
            # allow us to instantiate one
 
            while len(self.childComponents()) == 0:
                self.handleChildTerminations()
                mustStop, pleaseStop = self.checkControl()
                    return
 
                elif len(self.childComponents()) == 0:
                    # nothing to do, might as well sleep
                    self.pause()
            # second state - we've got a child now
            alreadyTerminatingChild=False
            while len(self.childComponents()) > 0:
                self.handleChildTerminations()
                mustStop, pleaseStop = self.checkControl()
                    alreadyTerminatingChild=True
 
                elif len(self.childComponents()) > 0:
                    # nothing to do, might as well sleep
                    self.pause()
    def handleChildTerminations(self):
        """Unplugs any children that have terminated"""
        for child in self.childComponents():
            if child._isStopped():
                self.removeChild(child)   # deregisters linkages for us

src/k/a/kamaelia-HEAD/Code/Python/Kamaelia/Kamaelia/Chassis/Carousel.py   kamaelia(Download)
            # allow us to instantiate one
 
            while len(self.childComponents()) == 0:
                self.handleChildTerminations()
                mustStop, pleaseStop = self.checkControl()
                    return
 
                elif len(self.childComponents()) == 0:
                    # nothing to do, might as well sleep
                    self.pause()
            # second state - we've got a child now
            alreadyTerminatingChild=False
            while len(self.childComponents()) > 0:
                self.handleChildTerminations()
                mustStop, pleaseStop = self.checkControl()
                    alreadyTerminatingChild=True
 
                elif len(self.childComponents()) > 0:
                    # nothing to do, might as well sleep
                    self.pause()
    def handleChildTerminations(self):
        """Unplugs any children that have terminated"""
        for child in self.childComponents():
            if child._isStopped():
                self.removeChild(child)   # deregisters linkages for us

src/k/a/kamaelia-HEAD/Sketches/MH/OnDemandBackplane/Backplane.py   kamaelia(Download)
        running child components left (ie. their microproceses have finished)
        """
        for child in self.childComponents():
            if child._isStopped():
                self.removeChild(child)   # deregisters linkages for us
 
        return 0==len(self.childComponents())
        running child components left (ie. their microproceses have finished)
        """
        for child in self.childComponents():
            if child._isStopped():
                self.removeChild(child)   # deregisters linkages for us
 
        return 0==len(self.childComponents())

src/k/a/kamaelia-HEAD/Sketches/RJL/Kamaelia/Community/RJL/Kamaelia/Protocol/HTTP/HTTPServer.py   kamaelia(Download)
    def closeDownComponent(self):
        "Remove my subcomponents (HTTPParser, HTTPRequestHandler)"
        for child in self.childComponents():
            self.removeChild(child)
        self.mimehandler = None

src/k/a/kamaelia-HEAD/Code/Python/Kamaelia/Kamaelia/Apps/MPS/TPipe.py   kamaelia(Download)
    def childrenDone(self):
        """Unplugs any children that have terminated, and returns true if there are no
          running child components left (ie. their microproceses have finished)
        """
        for child in self.childComponents():
            if child._isStopped():
                self.removeChild(child)   # deregisters linkages for us
 
        return 0==len(self.childComponents())

src/k/a/kamaelia-HEAD/Sketches/MH/MobileReframe/CarouselRewrite.py   kamaelia(Download)
            # allow us to instantiate one
 
            while len(self.childComponents()) == 0:
                self.handleChildTerminations()
                mustStop, pleaseStop = self.checkControl()
                    return
 
                elif len(self.childComponents()) == 0:
                    # nothing to do, might as well sleep
                    self.pause()
            # second state - we've got a child now
            alreadyTerminatingChild=False
            while len(self.childComponents()) > 0:
                self.handleChildTerminations()
                mustStop, pleaseStop = self.checkControl()
                    alreadyTerminatingChild=True
 
                elif len(self.childComponents()) > 0:
                    # nothing to do, might as well sleep
                    self.pause()
    def handleChildTerminations(self):
        """Unplugs any children that have terminated"""
        for child in self.childComponents():
            if child._isStopped():
                self.removeChild(child)   # deregisters linkages for us

  1 | 2 | 3 | 4  Next