Esempio n. 1
0
 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()
Esempio n. 2
0
    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()
Esempio n. 3
0
    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()