/usr/share/doc/pyro/examples/quickstart-noNS/server.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 | #!/usr/bin/env python
import sys
from Pyro.ext import remote_nons
import object
# if you don't like the objects to be registered in the Default namespace
# uncomment the following two lines, and use the 'nsc' tool to create
# the appropriate name group:
# import Pyro
# Pyro.config.PYRO_NS_DEFAULTGROUP=":mygroup"
print 'Providing local object as "quickstart"...'
remote_nons.provide_server_object(object.myObject(), 'quickstart',
'localhost', object.PYRO_PORT)
print 'Waiting for requests.'
sys.exit(remote_nons.handle_requests(wait_time=2))
|