[Bugs] #1630 MAJO: Support for mobile broadband provider database

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Fri Aug 27 13:12:47 EDT 2010


#1630: Support for mobile broadband provider database
--------------------------------+-------------------------------------------
    Reporter:  aa               |          Owner:  aa         
        Type:  enhancement      |         Status:  new        
    Priority:  major            |      Milestone:  0.90       
   Component:  python-xklavier  |        Version:  Unspecified
    Severity:  Minor            |       Keywords:  3g r!      
Distribution:  Unspecified      |   Status_field:  New        
--------------------------------+-------------------------------------------

Comment(by erikos):

 {{{
 language_code, encoding_ = locale.getdefaultlocale()
 LANG = language_code[:2]
 }}}
 I find something like this more readable. I looked a bit around but did
 not find a better way to get the LANG.

 Please make that part a method to not have a so long constructor like:
 {{{
 if model.has_providers_db():
     self._add_provider_information()
 }}}

 Please include the the with statement by doing: from __future__ import
 with_statement so we do not depend on 2.6

 For XDG, would be great if you could change it to use it. We can change
 other parts of sugar then too in 0.92. The current patch does not work on
 sugar-jhbuild for example.

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/1630#comment:17>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list