Re: [pygtk] Bonobo and Python

2004-02-11 Thread Girish Wadhwani

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/


Re: [pygtk] Bonobo and Python

2004-02-10 Thread Girish Wadhwani
That doesn't seem to work either.

What I am trying to do is to load a compotent to view
a  file. From my understanding gnome will select the
right component. What is the moniker that I have to
use? Do I have to use gnome vfs? I haven't found much
documentation on monikers except for:
 http://primates.ximian.com/~miguel/monikers.html

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/


Re: [pygtk] Bonobo and Python

2004-02-10 Thread Gustavo J. A. M. Carneiro
A Ter, 2004-02-10 às 07:31, Girish Wadhwani escreveu:
 That doesn't seem to work either.
 
 What I am trying to do is to load a compotent to view
 a  file. From my understanding gnome will select the
 right component. What is the moniker that I have to
 use? Do I have to use gnome vfs? I haven't found much
 documentation on monikers except for:
  http://primates.ximian.com/~miguel/monikers.html
 

  Yes, bonobo automatically finds a component that can open the MIME
type of the URI.  However, that may not be very helpful in practice,
since it may find the worst of several components capable of displaying
that MIME type.
  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
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] Bonobo and Python

2004-02-09 Thread Gustavo J. A. M. Carneiro
A Seg, 2004-02-09 às 03:35, Girish Wadhwani escreveu:
 Hi,
 
 I've been messing around with the Bonobo controls
 example in :
 http://www.pycage.de/howto_bonobo.html
 
 As is, the script with:
 container = bonobo.ui.Container()
 control =
 bonobo.ui.Widget(OAFIID:Nautilus_Text_View,
   container.corba_objref())
 
 causes a new window to be opened but nothing is
 displaed i.e. the window is blank 
 _
 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().

 Traceback (most recent call last):
   File bonobotest.py, line 36, in ?
 container.corba_objref())
 RuntimeError: could not create BonoboControl object
 
 ---
 Trying to view a pdf file with:
uri = file: + sys.argv[1]
control = bonobo.ui.widget(uri,
container.corba_objref())
 
 causes:
 
  Bonobo-WARNING **: Activation exception 'Moniker
 interface cannot be found'
 Traceback (most recent call last):
   File bonobotest.py, line 36, in ?
 container.corba_objref())
 RuntimeError: could not create BonoboControl object
 
 Anybody have any success with this?
 
 Thanks,
 Girish
 
 Details of my installation:
  
 I am using gentoo with 
 python 2.3.3
 gnome-python 2.0.0
 orbit-python 1.99.0-r1
 
 The controls I have installed 
  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,
 location OAFIID:GNOME_Wncklet_Factory
 IID OAFIID:GNOME_SystemTrayApplet, type factory,
 location OAFIID:GNOME_NotificationAreaApplet_Factory
 IID OAFIID:GNOME_GDictApplet, type factory, location
 OAFIID:GNOME_GDictApplet_Factory
 IID OAFIID:GNOME_EOG_Control, type factory, location
 OAFIID:GNOME_EOG_Factory
 IID OAFIID:GNOME_EOG_CollectionControl, type factory,
 location OAFIID:GNOME_EOG_CollectionFactory
 IID OAFIID:GNOME_DriveMountApplet, type factory,
 location OAFIID:GNOME_DriveMountApplet_Factory
 IID OAFIID:GNOME_Gedit_Control, type factory, location
 OAFIID:GNOME_Gedit_ViewerFactory
 IID OAFIID:Themus_Theme_Properties_View, type shlib,
 location
 /usr/lib/bonobo/libthemus-theme-properties-view.so
 IID OAFIID:GNOME_PDF_NautilusPropertyPage, type
 factory, location OAFIID:GNOME_PDF_Factory
 IID OAFIID:GNOME_PDF_Control, type factory, location
 OAFIID:GNOME_PDF_Factory
 IID OAFIID:Nautilus_Audio_Properties_View, type shlib,
 location
 /usr/lib/bonobo/libnautilus-audio-properties-view.so
 IID OAFIID:Nautilus_Audio_View, type factory, location
 OAFIID:Nautilus_Audio_View_Factory
 IID OAFIID:GNOME_NotificationAreaApplet, type factory,
 location OAFIID:GNOME_NotificationAreaApplet_Factory
 IID OAFIID:GNOME_FishApplet, type factory, location
 OAFIID:GNOME_FishApplet_Factory
 IID OAFIID:Nautilus_File_Manager_Search_List_View,
 type factory, location OAFIID:Nautilus_Factory
 IID OAFIID:Nautilus_File_Manager_List_View, type
 factory, location OAFIID:Nautilus_Factory
 IID OAFIID:Nautilus_File_Manager_Desktop_Icon_View,
 type factory, location OAFIID:Nautilus_Factory
 IID OAFIID:Nautilus_File_Manager_Icon_View, type
 factory, location OAFIID:Nautilus_Factory
 IID OAFIID:Square_Controller, type factory, location
 OAFIID:Square_ControllerFactory
 IID OAFIID:Circle_Controller, type factory, location
 OAFIID:Circle_ControllerFactory
 IID OAFIID:Bonobo_Sample_Entry, type factory, location
 OAFIID:Bonobo_Sample_ControlFactory
 IID OAFIID:Nautilus_History_View, type shlib, location
 /usr/lib/bonobo/libnautilus-history-view
 IID OAFIID:Nautilus_Notes_View, type shlib, location
 /usr/lib/bonobo/libnautilus-notes-view
 IID OAFIID:Nautilus_Printers_View, type shlib,
 location /usr/lib/bonobo/libnautilus-printers-view.so
 IID OAFIID:GNOME_ClockApplet, type factory, location
 OAFIID:GNOME_ClockApplet_Factory
 IID OAFIID:GNOME_Epiphany_NautilusView, type factory,
 location OAFIID:GNOME_Epiphany_NautilusViewFactory
 IID OAFIID:Nautilus_Image_Properties_View, type shlib,
 

[pygtk] Bonobo and Python

2004-02-08 Thread Girish Wadhwani
Hi,

I've been messing around with the Bonobo controls
example in :
http://www.pycage.de/howto_bonobo.html

As is, the script with:
container = bonobo.ui.Container()
control =
bonobo.ui.Widget(OAFIID:Nautilus_Text_View,
  container.corba_objref())

causes a new window to be opened but nothing is
displaed i.e. the window is blank 
_
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'
Traceback (most recent call last):
  File bonobotest.py, line 36, in ?
container.corba_objref())
RuntimeError: could not create BonoboControl object

---
Trying to view a pdf file with:
   uri = file: + sys.argv[1]
   control = bonobo.ui.widget(uri,
   container.corba_objref())

causes:

 Bonobo-WARNING **: Activation exception 'Moniker
interface cannot be found'
Traceback (most recent call last):
  File bonobotest.py, line 36, in ?
container.corba_objref())
RuntimeError: could not create BonoboControl object

Anybody have any success with this?

Thanks,
Girish

Details of my installation:
 
I am using gentoo with 
python 2.3.3
gnome-python 2.0.0
orbit-python 1.99.0-r1

The controls I have installed 
 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,
location OAFIID:GNOME_Wncklet_Factory
IID OAFIID:GNOME_SystemTrayApplet, type factory,
location OAFIID:GNOME_NotificationAreaApplet_Factory
IID OAFIID:GNOME_GDictApplet, type factory, location
OAFIID:GNOME_GDictApplet_Factory
IID OAFIID:GNOME_EOG_Control, type factory, location
OAFIID:GNOME_EOG_Factory
IID OAFIID:GNOME_EOG_CollectionControl, type factory,
location OAFIID:GNOME_EOG_CollectionFactory
IID OAFIID:GNOME_DriveMountApplet, type factory,
location OAFIID:GNOME_DriveMountApplet_Factory
IID OAFIID:GNOME_Gedit_Control, type factory, location
OAFIID:GNOME_Gedit_ViewerFactory
IID OAFIID:Themus_Theme_Properties_View, type shlib,
location
/usr/lib/bonobo/libthemus-theme-properties-view.so
IID OAFIID:GNOME_PDF_NautilusPropertyPage, type
factory, location OAFIID:GNOME_PDF_Factory
IID OAFIID:GNOME_PDF_Control, type factory, location
OAFIID:GNOME_PDF_Factory
IID OAFIID:Nautilus_Audio_Properties_View, type shlib,
location
/usr/lib/bonobo/libnautilus-audio-properties-view.so
IID OAFIID:Nautilus_Audio_View, type factory, location
OAFIID:Nautilus_Audio_View_Factory
IID OAFIID:GNOME_NotificationAreaApplet, type factory,
location OAFIID:GNOME_NotificationAreaApplet_Factory
IID OAFIID:GNOME_FishApplet, type factory, location
OAFIID:GNOME_FishApplet_Factory
IID OAFIID:Nautilus_File_Manager_Search_List_View,
type factory, location OAFIID:Nautilus_Factory
IID OAFIID:Nautilus_File_Manager_List_View, type
factory, location OAFIID:Nautilus_Factory
IID OAFIID:Nautilus_File_Manager_Desktop_Icon_View,
type factory, location OAFIID:Nautilus_Factory
IID OAFIID:Nautilus_File_Manager_Icon_View, type
factory, location OAFIID:Nautilus_Factory
IID OAFIID:Square_Controller, type factory, location
OAFIID:Square_ControllerFactory
IID OAFIID:Circle_Controller, type factory, location
OAFIID:Circle_ControllerFactory
IID OAFIID:Bonobo_Sample_Entry, type factory, location
OAFIID:Bonobo_Sample_ControlFactory
IID OAFIID:Nautilus_History_View, type shlib, location
/usr/lib/bonobo/libnautilus-history-view
IID OAFIID:Nautilus_Notes_View, type shlib, location
/usr/lib/bonobo/libnautilus-notes-view
IID OAFIID:Nautilus_Printers_View, type shlib,
location /usr/lib/bonobo/libnautilus-printers-view.so
IID OAFIID:GNOME_ClockApplet, type factory, location
OAFIID:GNOME_ClockApplet_Factory
IID OAFIID:GNOME_Epiphany_NautilusView, type factory,
location OAFIID:GNOME_Epiphany_NautilusViewFactory
IID OAFIID:Nautilus_Image_Properties_View, type shlib,
location
/usr/lib/bonobo/libnautilus-image-properties-view
IID OAFIID:Nautilus_Emblem_View, type shlib, location
/usr/lib/bonobo/libnautilus-emblem-view
IID OAFIID:Nautilus_Tree_View, type shlib, location
/usr/lib/bonobo/libnautilus-tree-view
IID OAFIID:Nautilus_Throbber, type factory, location
OAFIID:Nautilus_Throbber_Factory
IID OAFIID:Nautilus_Text_View, type factory, location
OAFIID:Nautilus_Text_View_Factory
IID OAFIID:GNOME_CharpickerApplet, type factory,
location OAFIID:GNOME_CharpickerApplet_Factory
IID OAFIID:GNOME_MixerApplet, type factory,