#115 ToDoList plugin preferences fails with KeyError

closed
nobody
None
5
2007-05-23
2007-05-22
Matthew Fremont
No

In version 0.2.1 of the ToDoList plugin, Options->Plugin Preferences->ToDoList fails with KeyError at line 83. The dialog is not displayed.

The problem appears to be an inconsistency in the key used by PrefsDialog.__init__, OnPreferences, and ToDoList.prefs for the ToDo label preference.

The following change to ToDoList.py fixes the problem:

83c83
< w.SetValue(prefs['Label'])
---
> w.SetValue(prefs['label'])
133c133
< prefs['Label'] = d.label.GetValue()
---
> prefs['label'] = d.label.GetValue()

Discussion

  • Logged In: YES
    user_id=772872
    Originator: NO

    Hello Matthew, right, thank you (checked in into svn).

     
    • status: open --> closed
     
  • Logged In: YES
    user_id=772872
    Originator: NO

    and released a new todo plugin.