No such luck. I get: 
Traceback (most recent call last):
  File "./bonobo-test.py", line 8, in ?
    "IDL:Bonobo/Control:1.0")
Bonobo.InterfaceNotFound

However, 
 gwom $ activation-client -q --spec="has (repo_ids,
'IDL:Bonobo/Control:1.0')" | grep '^IID'
IID OAFIID:Gst_Player_View, type factory, location
OAFIID:Gst_Player_View_Factory
IID OAFIID:GNOME_ShowDesktopApplet, type factory,
location OAFIID:GNOME_Wncklet_Factory
IID OAFIID:GNOME_WindowListApplet, type factory,
location OAFIID:GNOME_Wncklet_Factory
IID OAFIID:GNOME_TasklistApplet, type factory,
location OAFIID:GNOME_Wncklet_Factory
IID OAFIID:GNOME_WorkspaceSwitcherApplet, type
factory, location OAFIID:GNOME_Wncklet_Factory
IID OAFIID:GNOME_PagerApplet, type factory, location
OAFIID:GNOME_Wncklet_Factory
IID OAFIID:GNOME_WindowMenuApplet, type factory,
.....
....

-Girish

>   Can you try the test program in attachment?  It
> should print an object
> reference.  For me it prints:
> 
> [emperor:tmp]$ ./test-bonobo-monikers.py
> Bonobo-Message: Stream extender:
> 'vfs:http://www.gnome.org/'
> Bonobo-Message: Attempt activate object satisfying
> 'bonobo:supported_mime_types.has ('text/html') AND
> repo_ids.has
> ('IDL:Bonobo/Control:1.0') AND repo_ids.has
> ('IDL:Bonobo/PersistStream:1.0')': 0x81e41f0
>  
> (test-bonobo-monikers.py:2836): gtkhtml-WARNING **:
> No such file or
> directory
>  
> (test-bonobo-monikers.py:2836): gtkhtml-WARNING **:
> No such file or
> directory
> <CORBA.Object 'IDL:Bonobo/Control:1.0' at 0x81e41f0>
> 
> > Thanks,
> > Girish 
> > 
> > 
> > > > Using:
> > > > container = bonobo.ui.Container()
> > > > control =
> bonobo.ui.Widget("http://www.gnome.org";,
> > > >                container.corba_objref())
> > > > 
> > > > Bonobo-WARNING **: Activation exception
> 'Moniker
> > > > interface cannot be found'
> > > 
> > >   Bonobo is right ;) Try this instead:
> > > 
> > > control =
> > > bonobo.ui.Widget("vfs:http://www.gnome.org";,
> > >                container.corba_objref())
> > > 
> > >   In a more general case, you have to be very
> > > careful with what you put
> > > after the moniker prefix (vfs:), since some
> > > characters have special
> > > meaning to bonobo.  When in doubt, escape the
> URI
> > > string first, using
> > > bonobo.moniker_util_escape().
> > 
> > 
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Finance: Get your refund fast by filing
> online.
> > http://taxes.yahoo.com/filing.html
> > _______________________________________________
> > pygtk mailing list   [EMAIL PROTECTED]
> > http://www.daa.com.au/mailman/listinfo/pygtk
> > Read the PyGTK FAQ:
> http://www.async.com.br/faq/pygtk/
> -- 
> Gustavo J. A. M. Carneiro
> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
> > #!/usr/bin/env python
> import pygtk; pygtk.require("2.0")
> import bonobo
> import bonobo.ui
> import gnome.vfs
> 
> obj = bonobo.get_object("vfs:http://www.gnome.org/";,
>                       "IDL:Bonobo/Control:1.0")
> print obj
> 


__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to