orbit question-Pyorbit



 Hi,

I have been trying to use Pyorbit.

I have done the following:

##Corba server stuff
orb = CORBA.ORB_init(("gmath", "numpy"), "orbit-local-orb")
poa = PortableServer.RootPOA(orb)
poa.the_POAManager.activate()

servant =  Types.POA_Tester(win)
poa.activate_object_with_id("gmath\0", servant)
ref = poa.servant_to_reference(servant)
ior = orb.object_to_string(ref)

iorfile = open("/tmp/GMatH.ior", "w")
iorfile.write(ior)
iorfile.close()

thread.start_new_thread(orb.run,())

Here "win" is a GnomeApp instance

Now in the another app, I tried to connect to that ior (whatever?!!)

Anyway, needless to say it doesn't work!

What am I doing wrong?

 
Btw, how do I put orb.run() with mainloop() in pygnome?!







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]