Opened 11 years ago
#3802 new defect
Order of lessons
Reported by: | humitos | Owned by: | wadeb |
---|---|---|---|
Priority: | Unspecified by Maintainer | Milestone: | Unspecified |
Component: | TypingTurtle | Version: | Unspecified |
Severity: | Unspecified | Keywords: | |
Cc: | godiard | Distribution/OS: | Unspecified |
Bug Status: | Unconfirmed |
Description
Step to reproduce it:
- Open Typing Turtle
- Go to Edit Lessons screen
- Click on "+" sign to add a new lesson
- Write a title
- Click in "Go Back"
- Click on "Stop" to close the Activity
- 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
Note: See
TracTickets for help on using
tickets.