This file is indexed.

/usr/share/doc/pyro/examples/testmobile/passon/server/server1.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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env python

import sys, os
import Pyro.core
from Pyro.errors import PyroError
import Pyro.naming

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"

class Test(Pyro.core.ObjBase):
	def __init__(self):
		Pyro.core.ObjBase.__init__(self)
	def method1(self, argument):
		print "method1 called on test class, arg=",argument
		try:
			obj=Pyro.core.getProxyForURI("PYRONAME://:testmobile_passon_server2")
			print "calling method on server2, passing on argument"
			result="Server1 result;"
			result+=obj.method2(argument)
		except PyroError,x:
			print "Some error occured!",x
			result="there was an error in server1, see the console over there"	
		print "returning result:",result
		return result

Pyro.core.initServer()
Pyro.core.initClient()
ns=Pyro.naming.NameServerLocator().getNS()
daemon = Pyro.core.Daemon()
daemon.useNameServer(ns)
objectName=':testmobile_passon_server1'
uri=daemon.connect(Test(),objectName)

# enter the service loop.
print 'Server1 is ready for customers.'
daemon.requestLoop()