[Bugs] #3802 TypingTurtle UNSP: Order of lessons

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Mon Aug 13 10:12:25 EDT 2012


#3802: Order of lessons
------------------------------------------+---------------------------------
    Reporter:  humitos                    |          Owner:  wadeb                      
        Type:  defect                     |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  TypingTurtle               |        Version:  Unspecified                
    Severity:  Unspecified                |       Keywords:                             
Distribution:  Unspecified                |   Status_field:  Unconfirmed                
------------------------------------------+---------------------------------
 Step to reproduce it:

  1. Open Typing Turtle
  1. Go to Edit Lessons screen
  1. Click on "+" sign to add a new lesson
  1. Write a title
  1. Click in "Go Back"
  1. Click on "Stop" to close the Activity
  1. Open Typing Turtle again

 Issue:

 I get this error:
 {{{
 Traceback (most recent call last):
   File "/home/humitos/Activities/TypingTurtle.activity/mainscreen.py",
 line 252, in prev_lesson_clicked_cb
     self.show_lesson(self.lesson_index-1)
   File "/home/humitos/Activities/TypingTurtle.activity/mainscreen.py",
 line 232, in show_lesson
     next_index = self.get_next_lesson()
   File "/home/humitos/Activities/TypingTurtle.activity/mainscreen.py",
 line 150, in get_next_lesson
     if self.lessons[i]['order'] >= 0 and \
 KeyError: 'order'
 }}}

 Expected issue:

 Get the correct order of lessons.

 ''NOTE: this happens because the order of the lessons is saved when the
 "Go Back" button is pressed in the Main screen of Edit Lessons screen, so
 if we close the activity without pressing that button the order is not
 saved''

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/3802>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list