After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 527541 - port to GIO
port to GIO
Status: RESOLVED FIXED
Product: sabayon
Classification: Deprecated
Component: general
SVN trunk
Other Linux
: High normal
: ---
Assigned To: Maintainers of sabayon
Maintainers of sabayon
Depends on:
Blocks:
 
 
Reported: 2008-04-11 13:24 UTC by André Klapper
Modified: 2009-02-05 19:39 UTC
See Also:
GNOME target: 2.26.x
GNOME version: ---


Attachments
GIO port patch (3.79 KB, patch)
2008-09-07 06:40 UTC, Evan Briones
committed Details | Review

Description André Klapper 2008-04-11 13:24:44 UTC
http://live.gnome.org/GioPort

$:andre\> grep -R gnome_vfs .
./lib/dirmonitor.py:        self.watches = {} # maps filename => gnome_vfs_monitor handle

$:andre\> grep -R gnome-vfs .
./lib/config.py.in:    ".gnome/gnome-vfs/.trash_entry_cache",
Comment 1 André Klapper 2008-04-11 13:32:41 UTC
http://svn.gnome.org/viewvc/pygobject/trunk/gio/
<jdahlin> It won't be complete for a while, but I encourage you to start using it right now
<jdahlin> not sure if it's realistic to introduce gvfs/gio compatibility layer in applications
<jdahlin> I need more bug reports, to know what's missing


so please start porting *now* and file reports!
Comment 2 Johan (not receiving bugmail) Dahlin 2008-06-04 16:57:00 UTC
(In reply to comment #0)
> http://live.gnome.org/GioPort
> 
> $:andre\> grep -R gnome_vfs .
> ./lib/dirmonitor.py:        self.watches = {} # maps filename =>
> gnome_vfs_monitor handle
> 
> $:andre\> grep -R gnome-vfs .
> ./lib/config.py.in:    ".gnome/gnome-vfs/.trash_entry_cache",
> 

In python it's gnomevfs, not gnome_vfs.
Comment 3 André Klapper 2008-06-05 15:06:01 UTC
$:andre\> cd sabayon/
$:andre\> grep -R gnomevfs .
./lib/dirmonitor.py:import gnomevfs
./lib/dirmonitor.py:CHANGED = gnomevfs.MONITOR_EVENT_CHANGED
./lib/dirmonitor.py:DELETED = gnomevfs.MONITOR_EVENT_DELETED
./lib/dirmonitor.py:CREATED = gnomevfs.MONITOR_EVENT_CREATED
./lib/dirmonitor.py:    # Processing of a gnomevfs callback
./lib/dirmonitor.py:    def __handle_gnomevfs_event (self, dir_uri, file_uri, event):
./lib/dirmonitor.py:            dprint ("Got gnomevfs event '%s' on '%s'", event_to_string (event), path)
./lib/dirmonitor.py:                        gnomevfs.monitor_cancel (self.watches [path])
./lib/dirmonitor.py:            self.watches [dir] = gnomevfs.monitor_add (dir, gnomevfs.MONITOR_DIRECTORY, self.__handle_gnomevfs_event)
./lib/dirmonitor.py:            gnomevfs.monitor_cancel (self.watches [path])
Comment 4 André Klapper 2008-06-29 10:49:02 UTC
We now have GIO bindings in PyGObject SVN, see bug 537551.
Comment 5 André Klapper 2008-07-15 14:20:12 UTC
And we now have a pygobject 2.15 release including these bindings.
no reason to not work on this. :-)
Comment 6 Evan Briones 2008-09-07 06:40:15 UTC
Created attachment 118201 [details] [review]
GIO port patch

This needs to be tested. Send me feedback and I'll work on it.
Comment 7 Cosimo Cecchi 2008-11-07 18:15:41 UTC
The patch looks good to me, though I'm not a Sabayon maintainer.

Federico, can we get this in for 2.26?
Comment 8 André Klapper 2009-01-19 14:58:38 UTC
Federico: ping - Patch attached
Comment 9 Vincent Untz 2009-01-26 17:05:39 UTC
Looks good to me too.
Comment 10 André Klapper 2009-02-05 19:25:00 UTC
<federic1> andre: please commit it, and remove the call to urllib.unquote()
<federic1> andre: it's not needed as file_uri.get_path() should already do the unquoting foo
<federic1> assuming file_uri is a GFile :)
Comment 11 André Klapper 2009-02-05 19:39:14 UTC
Committed, thanks a lot!

http://svn.gnome.org/viewvc/sabayon?view=revision&revision=1046