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

All Samples(19)  |  Call(16)  |  Derive(0)  |  Import(3)

src/k/a/kamaelia-HEAD/Code/Python/Axon/Axon/Component.py   kamaelia(Download)
from Axon.debug import debug
from Axon.Microprocess import microprocess
from Axon.Postoffice import postoffice
from Axon.Scheduler import scheduler
from Axon.AxonExceptions import noSpaceInBox
      self._callOnCloseDown = []
 
      self.postoffice = postoffice("component :" + self.name)
      if TraceAllSends:
          self._o_send = self.send

src/k/a/kamaelia-HEAD/Tests/Python/Axon/test_Postoffice.py   kamaelia(Download)
from Axon.Component import component
from Axon.Scheduler import scheduler
from Axon.Postoffice import postoffice
from Axon.AxonExceptions import noSpaceInBox
from Axon.AxonExceptions import BoxAlreadyLinkedToDestination
    def test___init__SmokeTest_NoArguments(self):
        """postoffice can be instantiated with no arguments. Defaults to no debugger or registered linkages."""
        p = postoffice()
        self.assert_(p.debugname=="", "defaults to have no debugname")
        self.assert_(len(p.linkages)==0, "initializes with no linkages registered")
 
    def test___init__SmokeTest_DebugnameArgument(self):
        """postoffice can be instantiated with a debugger."""
        testname="[fwibble]"
        p = postoffice(debugname=testname)
    def test__str__checksStringFormatStrict(self):
        '__str__ - Checks the formatted string is of the correct format.'
        p = postoffice()
        self.failUnless(self.strtest(p))
        p2 = postoffice(debugname="flurble")

src/k/a/kamaelia-HEAD/Sketches/MPS/BugReports/FixTests/Axon/Axon/Component.py   kamaelia(Download)
from Axon.debug import debug
from Axon.Microprocess import microprocess
from Axon.Postoffice import postoffice
from Axon.Scheduler import scheduler
from Axon.AxonExceptions import noSpaceInBox
      self._callOnCloseDown = []
 
      self.postoffice = postoffice("component :" + self.name)
      if TraceAllSends:
          self._o_send = self.send