wiki:DynamicTodoList

Version 1 (modified by chriz, 8 years ago) (diff)

Migrated from old trac wiki

a function to list all todos. ( yes, this description needs work )

def myFindTodos(editor, pwiki):
   todos=pwiki.wikiData.getTodos()
   editor.GotoLine(3)
   editor.SetSelectionEnd(editor.GetLength())
   editor.ReplaceSelection("\n")
   for todo in todos:
       editor.AddText(str(todo[0]))
       editor.AddText("  ")
       editor.AddText(str(todo[1]))
       editor.AddText("\n")