connect method of SyncdaemonDaemon object conflicts with connect from GObject
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu One Client |
Confirmed
|
High
|
Ubuntu One Client Engineering team |
Bug Description
Installed ubuntuone-client: 1.3.8-0ubuntu2
GObject connect() method is overriden by libsyncdaemon bindings leading to the following code causing an exception:
Traceback (most recent call last):
File "syncdaemon-
connection = daemon.
File "/usr/lib/
return info.invoke(*args)
TypeError: connect() takes exactly 1 argument(s) (3 given)
libsyncdaemon bindings for connect/disconnect will need to be renamed for GObject introspection to work with python.
The lists passed as gpointers will also need to be translated to other types since the following code will not work even after that:
#!/usr/bin/env python
import gobject
from gi.repository import SyncDaemon
def got_published_
print parama, paramb
daemon = SyncDaemon.Daemon()
connection = daemon.
publicfiles = SyncDaemon.
files = publicfiles.
loop = gobject.MainLoop()
loop.run()
summary: |
- libsyncdaemon gobject introspection cannot be used from python + connect method of SyncdaemonDaemon object conflicts with connect from + GObject |
The workaround for that is to use daemon. connect_ after()