5
import params.parameters
8
URI = "PYROLOC://%s/test.threadmobile"
11
if not Pyro.config.PYRO_MOBILE_CODE:
12
raise SystemExit("PYRO_MOBILE_CODE not enabled")
13
if Pyro.config.PYRO_XML_PICKLE=='gnosis' and Pyro.config.PYRO_GNOSIS_PARANOIA>=0:
14
raise SystemExit("Using gnosis xml pickle but PYRO_GNOSIS_PARANOIA needs to be -1")
17
startEvent = threading.Event()
20
obj=Pyro.core.getProxyForURI(URI % HOST)
22
name = threading.currentThread().getName()
24
p = params.parameters.Parameter(name)
27
print "result=",result,"calling method on it..."
30
print "".join(Pyro.util.getPyroTraceback(x))
35
HOST=raw_input("server host (empty for %s): " % HOST) or HOST
38
for i in range(NUM_THREADS):
39
w=threading.Thread(target=worker)