[Sugar-devel] [sugar 0.98 PATCH v2] sl#3800: In "My Settings" -> "ModemConfiguration", convert the procedure to process the results of "connection.get_secrets('gsm', _secrets_cb, _secrets_err_cb)" from pseudo-asynchronous to asynchronous.
Ajay Garg
ajay at activitycentral.com
Mon Aug 13 01:48:15 EDT 2012
On Mon, Aug 13, 2012 at 11:07 AM, James Cameron <quozl at laptop.org> wrote:
> Thanks.
>
> On Mon, Aug 13, 2012 at 10:51:59AM +0530, Ajay Garg wrote:
> > @@ -59,12 +61,6 @@ def get_modem_settings():
> > # must be called asynchronously as this re-enters the GTK main loop
>
> Is this comment in the context still held to be true, given that you
> have removed the call to the GTK main loop immediately below?
>
Yes James, this comment is with regard to the code
"connection.get_secrets('gsm', _secrets_cb, _secrets_err_cb)".
Thus, this comment helps know as to why the line
"connection.get_secrets('gsm', _secrets_cb, _secrets_err_cb)" is actually
asynchronous.
Sorry for not clearing that before :-\
Thanks and Regards,
Ajay
> > connection.get_secrets('gsm', _secrets_cb, _secrets_err_cb)
> >
> > - # wait til asynchronous execution completes
> > - while not secrets_call_done[0]:
> > - gtk.main_iteration()
> > -
> > - return modem_settings
> > -
>
> If not, fix the comment.
>
> --
> James Cameron
> http://quozl.linux.org.au/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20120813/a474c473/attachment.html>
More information about the Sugar-devel
mailing list