def __init__(self, connection, pureImplementationMappings=None): self.connection = connection self.stayOpenOnExit = False self.pureImplementationMappings = \ pureImplementationMappings or DefaultPureImplementationMappings.getMappings() self.objectRegistry = ObjectRegistry.ObjectRegistry() self.objectRehydrator = PythonObjectRehydrator.PythonObjectRehydrator( self.pureImplementationMappings ) self.lock = threading.Lock()
def __init__(self, connection, pureImplementationMappings=None): """Initialize a Pyfora executor. connection - a pyfora.Connection.Connection, or something with similar interface. """ self.connection = connection self.stayOpenOnExit = False self.pureImplementationMappings = pureImplementationMappings or DefaultPureImplementationMappings.getMappings() self.objectRegistry = ObjectRegistry.ObjectRegistry() self.objectRehydrator = PythonObjectRehydrator.PythonObjectRehydrator(self.pureImplementationMappings) self.futures = {} self.lock = threading.Lock()
def __init__(self, connection, pureImplementationMappings=None): """Initialize a Pyfora executor. connection - a pyfora.Connection.Connection, or something with similar interface. """ self.connection = connection self.stayOpenOnExit = False self.pureImplementationMappings = pureImplementationMappings or DefaultPureImplementationMappings.getMappings( ) self.objectRegistry = ObjectRegistry.ObjectRegistry() self.objectRehydrator = PythonObjectRehydrator.PythonObjectRehydrator( self.pureImplementationMappings) self.futures = {} self.lock = threading.Lock()