[Bugs] #4524 Speak UNSP: Speak have a saving error in ebook mode

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Tue Jun 18 07:08:32 EDT 2013


#4524: Speak have a saving error in ebook mode
------------------------------------------+---------------------------------
    Reporter:  godiard                    |          Owner:  RafaelOrtiz                
        Type:  defect                     |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  Speak                      |        Version:  Unspecified                
    Severity:  Unspecified                |       Keywords:                             
Distribution:  Unspecified                |   Status_field:  Unconfirmed                
------------------------------------------+---------------------------------

Comment(by godiard):

 The code:

 {{{
 activity.py

      def save_instance(self, file_path):
 271         if self._tablet_mode:
 272             if 'history' in self.cfg:
 273                 history = self.cfg['history']  # retain old history
 274             else:
 275                 history = []
 276         else:
 277             history = [unicode(i[0], 'utf-8', 'ignore') \
 278                            for i in self.entrycombo.get_model()]

 }}}

 Gives error in line 272, because for a new instance self.cfg does not
 exist

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


More information about the Bugs mailing list