4
ns=Pyro.naming.locateNS()
5
daemon=Pyro.core.Daemon()
7
uri=daemon.register(obj)
8
ns.remove("example.exceptions")
9
ns.register("example.exceptions", uri)
10
print "Server started."
4
sys.path.insert(0,os.pardir) # to find testserver.py
11
######## testclass object
13
class testclass(Pyro.core.ObjBase, excep.testclass):
15
Pyro.core.ObjBase.__init__(self)
19
testserver.start(testclass, 'exceptions')