[pygtk] GnomeVFS - how to initialize a GnomeVFS module

Gustavo J. A. M. Carneiro gjc at inescporto.pt
Tue Aug 23 04:56:34 WST 2005


On Mon, 2005-08-22 at 17:44 -0300, Johan Dahlin wrote:
> >   You put "pyfs: pythonmethod" in a gnome-vfs configuration file (notice
> > that the README asks you to install the file pyfs.conf).  Therefore,
> > when a pyfs:// URI is requested, gnome-vfs loads libpythonmethod.so,
> > which receives the 'pyfs' method name and then tries to import the
> > python module 'pyfs'.  The standard python path search, plus
> > $(libdir)/gnome-vfs-2.0/modules. In this module, it looks for a class
> > called 'pyfs_method'.  It then creates a new instance of this class, and
> > tries to get the vfs_xxxx methods, which are then used to implement the
> > VFS operations.
> 
> Perhaps you should add this documentation as a comment in the file or a 
> README next to it.

  There was already a README.  I added this info to it now.

> 
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
-- 
Gustavo J. A. M. Carneiro
<gjc at inescporto.pt> <gustavo at users.sourceforge.net>
The universe is always one step beyond logic



More information about the pygtk mailing list