Logo Search packages:      
Sourcecode: ipython version File versions  Download package

def IPython::kernel::engineservice::QueuedEngine::__init__ (   self,
  engine 
)

Create a QueuedEngine object from an engine

engine:       An implementor of IEngineCore and IEngineSerialized
keepUpToDate: whether to update the remote status when the 
      queue is empty.  Defaults to False.

Definition at line 582 of file engineservice.py.

00582                               :
        """Create a QueuedEngine object from an engine
        
        engine:       An implementor of IEngineCore and IEngineSerialized
        keepUpToDate: whether to update the remote status when the 
                      queue is empty.  Defaults to False.
        """
        
        # This is the right way to do these tests rather than 
        # IEngineCore in list(zi.providedBy(engine)) which will only 
        # picks of the interfaces that are directly declared by engine.
        assert IEngineBase.providedBy(engine), \
            "engine passed to QueuedEngine doesn't provide IEngineBase"
            
        self.engine = engine
        self.id = engine.id
        self.queued = []
        self.history = {}
        self.engineStatus = {}
        self.currentCommand = None
        self.failureObservers = []
    
    def _get_properties(self):


Generated by  Doxygen 1.6.0   Back to index