def __init__(self, uri): """ .. autoattribute:: _pyroOneway .. autoattribute:: _pyroTimeout """ _check_hmac() # check if hmac secret key is set if isinstance(uri, basestring): uri = URI(uri) elif not isinstance(uri, URI): raise TypeError("expected Pyro URI") self._pyroUri = uri self._pyroConnection = None self._pyroOneway = set() self._pyroSeq = 0 # message sequence number self.__pyroTimeout = Pyro4.config.COMMTIMEOUT self.__pyroLock = threadutil.Lock() self.__pyroConnLock = threadutil.Lock() util.get_serializer( Pyro4.config.SERIALIZER ) # assert that the configured serializer is available if os.name == "java" and Pyro4.config.SERIALIZER == "marshal": import warnings warnings.warn( "marshal doesn't work correctly with Jython (issue 2077); please choose another serializer", RuntimeWarning)
def __setstate__(self, state): self._pyroUri, self._pyroOneway, self._pyroAsyncs, self._pyroSerializer, self.__pyroTimeout = state self._pyroConnection=None self._pyroFutureDaemon=None self._pyroSeq=0 self.__pyroLock=threadutil.Lock() self.__pyroConnLock=threadutil.Lock()
def __init__(self, uri): """ .. autoattribute:: _pyroOneway .. autoattribute:: _pyroAsyncs .. autoattribute:: _pyroTimeout """ _check_hmac() # check if hmac secret key is set if isinstance(uri, basestring): uri=URI(uri) elif not isinstance(uri, URI): raise TypeError("expected Pyro URI") self._pyroUri=uri self._pyroConnection=None self._pyroFutureDaemon=None self._pyroOneway=set() self._pyroAsyncs=set() self._pyroSeq=0 # message sequence number self.__pyroTimeout=Pyro4.config.COMMTIMEOUT self.__pyroLock=threadutil.Lock() self.__pyroConnLock=threadutil.Lock()
def __init__(self): self.__ready = threadutil.Event() self.callchain = [] self.valueLock = threadutil.Lock()
def __init__(self): self.__ready = threadutil.Event() self.callchain = [] self.valueLock = threadutil.Lock() self.exceptionhandler = None
def __setstate__(self, state): self._pyroUri, self._pyroOneway, self.__pyroTimeout = state self._pyroConnection = None self._pyroSeq = 0 self.__pyroLock = threadutil.Lock() self.__pyroConnLock = threadutil.Lock()