[Sugar-devel] [PATCH v3 Browse] Store web session cookies in SQlite database, for SL #3456

Daniel Drake dsd at laptop.org
Thu Apr 19 12:57:53 EDT 2012


On Thu, Apr 19, 2012 at 10:51 AM, Manuel Quiñones <manuq at laptop.org> wrote:
>> +    soup_uri = Soup.URI.new(uri_string=backup_url)
>
> Daniel, above is the only new() constructor pending, I cannot find a
> replacement for it,  Soup.URI(uri_string=backup_url) gives error,
> there's no method in Soup.URI to setup with a uri string.  I can do
> uri.set_host() and uri.set_scheme(), but I have to split backup_url
> for that, and I don't know what kind of url is it.

Checked the libsoup source code. soup_uri_new() calls
soup_uri_new_with_base(), and this function has a whole heap of code
which lives outside of a class method.
So yes, using .new() is the only option here. Maybe add a comment
before commit explaining that the GObject constructor can't be used in
this case because the code we need is locked up behind .new().

Thanks
Daniel


More information about the Sugar-devel mailing list