Tomeu,<br><br>Following code traces of ListConnections from the <span class="TypeName">NMSettings class within Network.py, I've come across the following sequence of calls from NM's code:<br><br>NetworkManager.c's main function calls nm-manager-get (from nm-manager.c).<br>
<br>Within nm-mannager-get the function initial_get_connections gets called. I think it is this the function we are looking for since it invokes other functions (query_connections and poke_system_settings_daemon_cb) that call the ListConnections through the d-bus (dbus_gproxy_begin_call()).<br>
<br>So effectively I think that ListConnections is the one NM calls at startup.<br><br>Hope I helped.<br><br>Cheers<br></span><br><div class="gmail_quote">2010/9/8 Tomeu Vizoso <span dir="ltr"><<a href="mailto:tomeu@sugarlabs.org">tomeu@sugarlabs.org</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On Wed, Sep 8, 2010 at 13:42, Franco Miceli <<a href="mailto:fmiceli@plan.ceibal.edu.uy">fmiceli@plan.ceibal.edu.uy</a>> wrote:<br>
> For what I've been able to see load_wifi_connections collects all wifi<br>
> connections from /home/olpc/.sugar/default/nm/connections.cfg. This function<br>
> gets called by load_connections who gets called by get_settings.<br>
><br>
> I think that the class NMSettings is where sugar communicates this to NM,<br>
> but I don't seem to find a "main loop" that I can follow in order to<br>
> determine what happens when the process starts for the first time.<br>
><br>
> Could it be that this first "connection culling" is not provided by Sugar,<br>
> but in fact by other entity?<br>
><br>
> Sorry that I can't be of much help, but I'm very new to python and am still<br>
> trying to understand some of the basics.<br>
><br>
> Please tell me what I can do to help in solving this, since I've made<br>
> changes in the autoconnection feature for the XO in NM, and in order to get<br>
> the algorithms working well I need to get reliable data of the favourite<br>
> connections. So I'm very interested in getting this solved.<br>
<br>
</div>Hi Franco,<br>
<br>
I'm not familiar with this part of Sugar, but if you can check if this<br>
is the method that NM calls at startup to retrieve the available<br>
connections, we may get a step closer:<br>
<br>
<a href="http://git.sugarlabs.org/projects/sugar/repos/nops/blobs/master/src/jarabe/model/network.py#line354" target="_blank">http://git.sugarlabs.org/projects/sugar/repos/nops/blobs/master/src/jarabe/model/network.py#line354</a><br>
<br>
Regards,<br>
<br>
Tomeu<br>
<div class="im"><br>
> Thanks for everything.<br>
><br>
> Cheers<br>
><br>
> 2010/9/8 Sugar Labs Bugs <<a href="mailto:bugtracker-noreply@sugarlabs.org">bugtracker-noreply@sugarlabs.org</a>><br>
>><br>
>> #2295: Sugar 0.88 [Dextrose] not reporting all favourite connections to<br>
>> NetworkManager at startup<br>
>><br>
>> ------------------------------------------+---------------------------------<br>
>> Reporter: fmiceli | Owner: tomeu<br>
>> Type: defect | Status: new<br>
>> Priority: Unspecified by Maintainer | Milestone: Unspecified by<br>
>> Release Team<br>
>> Component: sugar | Version: 0.88.x<br>
>> Severity: Minor | Keywords:<br>
>> Distribution: Dextrose | Status_field: Unconfirmed<br>
>><br>
>> ------------------------------------------+---------------------------------<br>
>><br>
>> Comment(by tomeu):<br>
>><br>
>> Hi Franco, have you found the place in Sugar that provides that single<br>
>> connection to NM?<br>
>><br>
>> --<br>
>> Ticket URL: <<a href="http://bugs.sugarlabs.org/ticket/2295#comment:2" target="_blank">http://bugs.sugarlabs.org/ticket/2295#comment:2</a>><br>
>> Sugar Labs <<a href="http://sugarlabs.org/" target="_blank">http://sugarlabs.org/</a>><br>
>> Sugar Labs bug tracking system<br>
><br>
><br>
><br>
> --<br>
> Ing. Franco Miceli<br>
> CITS - Plan Ceibal - Investigación & Desarrollo<br>
> Av. Italia 6201 - Montevideo, Uruguay<br>
> CP: 11500<br>
> Tel: (598 2) 601 5773 int.: 2227<br>
><br>
</div>> _______________________________________________<br>
> Sugar-devel mailing list<br>
> <a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
> <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
><br>
><br>
</blockquote></div><br><br clear="all"><br>-- <br>Ing. Franco Miceli<br>CITS - Plan Ceibal - Investigación & Desarrollo<br>Av. Italia 6201 - Montevideo, Uruguay<br>CP: 11500<br>Tel: (598 2) 601 5773 int.: 2227<br>