[Sugar-devel] [DESIGN] Feature "Enhanced support for 3G modems"

Daniel Narvaez dwnarvaez at gmail.com
Thu Jul 4 07:53:37 EDT 2013


Thanks for tracking this down Miguel. I think it make sense to have our own
parser then. In general I'm happy with the general design of the patch. I
will comment on the details in the review.


On 4 July 2013 13:02, Miguel González <migonzalvar at activitycentral.com>wrote:

>
>
> On Thu, Jul 4, 2013 at 11:07 AM, Daniel Narvaez <dwnarvaez at gmail.com>wrote:
>
>> Hi,
>>
>> did we check what is parsing serviceproviders.xml in GNOME? It doesn't
>> seem to be ModemManager so maybe it's not something we can reuse but I'd
>> rather make sure before going with our own parser.
>>
>> AFAIK, the Service Provider Database is used by a wizard in
> NetworkManager. The source code is in "network-manager-applet" [3] not in
> "NetworkManager" or "ModemManager".
>
>
> [1]:
> https://wiki.gnome.org/NetworkManager/MobileBroadband/ServiceProviders
>
> [2]:
> http://blogs.gnome.org/dcbw/2009/06/22/mobile-broadband-assistant-makes-it-easy/
>
> [3]:
> https://git.gnome.org/browse/network-manager-applet/tree/src/libnm-gtk/nm-mobile-providers.c
>
>
>>
>> On 2 July 2013 22:49, Miguel González <migonzalvar at activitycentral.com>wrote:
>>
>>> Hello,
>>>
>>> I've just send a pull request with the implementation of 3G database
>>> support in control panel modem configuration section.
>>>
>>> https://github.com/sugarlabs/sugar/pull/46
>>>
>>> In this email, I'm attaching  a screenshot to review UI design.
>>>
>>> About the implementation, some highlights:
>>>
>>> - There is a new config.py file with constants: file paths and GConf
>>> keys.
>>>
>>> - It uses GConf keys to persistently store country, provider and plan
>>> selections
>>>
>>> - In model.py a class controller retrieve data form XML and store
>>> selections on GConf
>>>
>>> - In the view.py, adds a new ScrolledWindow with an upper box for 3
>>> combo provider selection, a separator and a lower box with the previous
>>> entries for network settings.
>>>
>>> - When a plan is selected, network settings are changed using the same
>>> methods.
>>>
>>>
>>> I have some concerns:
>>>
>>> - Is the GUI correct?
>>>
>>> - File paths should be move to a template config.py.in file?
>>>
>>> - I have kind of unitary tests for ServiceProviderDatabase class but I
>>> don't know exactly where to put them. They use mock library to simulate
>>> GConf calls.
>>>
>>> - Is it necessary to write functional test for view? Is there
>>> information about how to do it?
>>>
>>>
>>> Thank you for your attention.
>>> --
>>> Miguel González
>>> Activity Central: http://www.activitycentral.com
>>>
>>> _______________________________________________
>>> Sugar-devel mailing list
>>> Sugar-devel at lists.sugarlabs.org
>>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>>
>>>
>>
>>
>> --
>> Daniel Narvaez
>>
>
>
>
> --
> Miguel González
> Activity Central: http://www.activitycentral.com
>



-- 
Daniel Narvaez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20130704/d49590bf/attachment.html>


More information about the Sugar-devel mailing list