[omniORB] Fwd: StructuredPushConsumer

Duncan Grisby duncan at grisby.org
Tue Apr 7 11:30:28 BST 2009


On Monday 6 April, Kyle Dunn wrote:

> I am trying to craft a generic NotifyStructuredPushConsumer and am
> having trouble doing: obj._narrow(CosNaming.NamingContextExt). At
> runtime I receive this:
> 
>  File "notifyConsumer.py", line 33, in initCorbaOrb
>    self.rootContextExt = obj._narrow(CosNaming.NamingContextExt)
> TypeError: CORBA.Object._narrow() argument 1 must be type, not classobj

That is not an error you would get from omniORBpy. I suspect that you
have done "import CORBA" and got something other than omniORBpy (pyORBit
probably), and are trying to use omniORBpy's CosNaming module with
pyORBit.

If you use "from omniORB import CORBA", I expect the problems will go
away.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --



More information about the omniORB-list mailing list