#7764 BLOC 9.1.0: Reset Registration with school servers - short term solution

Zarro Boogs per Child bugtracker at laptop.org
Wed Oct 8 10:23:55 EDT 2008


#7764: Reset Registration with school servers - short term solution
---------------------------+------------------------------------------------
   Reporter:  kimquirk     |       Owner:  erikos                   
       Type:  enhancement  |      Status:  new                      
   Priority:  blocker      |   Milestone:  9.1.0                    
  Component:  sugar        |     Version:  not specified            
 Resolution:               |    Keywords:  r? joyride-2330:? relnote
Next_action:  review       |    Verified:  0                        
  Blockedby:               |    Blocking:                           
---------------------------+------------------------------------------------

Comment(by erikos):

 After discussion with marco, we decided that removing the option might be
 the better solution. This actually would only need a change in sugar-
 toolkit as well.

 {{{

 diff --git a/src/sugar/profile.py b/src/sugar/profile.py
 index 1b08202..6c5dcd2 100644
 --- a/src/sugar/profile.py
 +++ b/src/sugar/profile.py
 @@ -102,8 +102,13 @@ class Profile(object):
              _set_key(cp, 'Buddy', 'NickName',
 self.nick_name.encode('utf8'))
          if self.color:
              _set_key(cp, 'Buddy', 'Color', self.color.to_string())
 -        if self.backup1:
 +
 +        if self.backup1 is None:
 +            if cp.has_option('Server', 'Backup1'):
 +                cp.remove_section('Server')
 +        else:
              _set_key(cp, 'Server', 'Backup1', self.backup1)
 +
          if self.jabber_server is not None:
              _set_key(cp, 'Jabber', 'Server', self.jabber_server)

 }}}

-- 
Ticket URL: <http://dev.laptop.org/ticket/7764#comment:22>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list