[Sugar-devel] FileTransfer interface has been undraffted in Telepathy
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Wed Feb 18 06:24:30 EST 2009
Le mercredi 18 février 2009 à 13:04 +0200, Morgan Collett a écrit :
> On Tue, Feb 17, 2009 at 19:12, Guillaume Desmottes
> <guillaume.desmottes at collabora.co.uk> wrote:
> > Hi guys,
> >
> > I just released telepathy-salut 0.3.8 [1]. This version implements the
> > stable version of the file transfer API (previously, the one implemented
> > was the DRAFT API).
> > I also released telepathy-python 0.15.7 [2] generating interface and
> > constants for FT.
> >
> > Sugar should be adapted to use the stable API. As you can see in the
> > example script [3] changes are really trivial so it shouldn't be a
> > problem.
> >
> > Futur version of Gabble will implement this same interface, so no change
> > will be needed in Sugar to gain Jabber file transfer support.
>
> I've pushed sugar-jhbuild to use tp-salut 0.3.8 and tp-python 0.15.7,
> and Simon will push the sugar change shortly:
>
> diff --git a/src/jarabe/model/filetransfer.py b/src/jarabe/model/filetransfer.py
> index c66a19c..997fcc3 100644
> --- a/src/jarabe/model/filetransfer.py
> +++ b/src/jarabe/model/filetransfer.py
> @@ -41,7 +41,7 @@ FT_STATE_CANCELLED = 5
>
> # FIXME: use constants from tp-python once the spec is undrafted
> CHANNEL_TYPE_FILE_TRANSFER = \
> - 'org.freedesktop.Telepathy.Channel.Type.FileTransfer.DRAFT'
> + 'org.freedesktop.Telepathy.Channel.Type.FileTransfer'
If you're ok to depend on telepathy-python 0.15.7, you can import
CHANNEL_TYPE_FILE_TRANSFER and FT_STATE_* from it.
G.
More information about the Sugar-devel
mailing list