This file is indexed.

/usr/share/doc/pyro/examples/testmobile/bothways/client.py is in pyro-examples 1:3.14-1.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
import Pyro.core
import Pyro.util
import clientparams.parameters

if not Pyro.config.PYRO_MOBILE_CODE:
	print "\nWARNING: PYRO_MOBILE_CODE not enabled\n"
if Pyro.config.PYRO_XML_PICKLE=='gnosis' and Pyro.config.PYRO_GNOSIS_PARANOIA>=0:
	print "\nWARNING: Using gnosis xml pickle but PYRO_GNOSIS_PARANOIA needs to be -1\n"

HOST="localhost"
URI = "PYROLOC://%s/testmobile.bothways"

HOST=raw_input("server host (empty for %s): " % HOST) or HOST	
obj=Pyro.core.getProxyForURI(URI % HOST)
# create a parameter of a class that the serve doesn't know about.
# Pyro's mobile code feature will supply the code to the server.
param = clientparams.parameters.ClientParameter("some name")
result=obj.method(param)
# the restut will be an 'unknown' object type !
# Pyro's mobile code feature will make the server supply the code to us as well.
print "result of calling remote object: ",result
print "name was: ",result.name