[Sugar-devel] Activity updater crash
Walter Bender
walter.bender at gmail.com
Tue May 7 16:59:24 EDT 2013
On Tue, May 7, 2013 at 4:20 PM, Daniel Narvaez <dwnarvaez at gmail.com> wrote:
> Hi Walter,
>
> the updater crash seems to be a bug in your code
>
> It looks like you should use get_data to get a python array from GBytes.
> (unref_to_array shouldn't really be exposed in python)
>
Thanks. /me wonders why it ever worked. I'll try to wrap up the other
changes you requested ASAP so we can put this one to bed.
-walter
>
> diff --git a/extensions/cpsection/updater/backends/aslo.py
> b/extensions/cpsectio
> index e244af0..7c41ae6 100644
> --- a/extensions/cpsection/updater/backends/aslo.py
> +++ b/extensions/cpsection/updater/backends/aslo.py
> @@ -116,7 +116,7 @@ class _UpdateFetcher(object):
> self._process_result()
> return
> else:
> - xml_data = data.unref_to_array()
> + xml_data = data.get_data()
> self._xml_data += str(xml_data)
>
> stream.read_bytes_async(self._CHUNK_SIZE, GLib.PRIORITY_DEFAULT,
> None,
>
>
>
> --
> Daniel Narvaez
>
--
Walter Bender
Sugar Labs
http://www.sugarlabs.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20130507/71b61786/attachment-0001.html>
More information about the Sugar-devel
mailing list