bjonnh/PyOrgMode — pull request #12 by m3wolf (2012-09-26 01:40:12+00:00)
Title: Added some basic todo functionality.

I added support to the OrgNode plugin for finding headings that are marked as TODO states. I also put methods in OrgDataStructure that can be called before load_from_file() to specify which keywords are TODO states (default is 'TODO' and 'DONE').

Example code if the first heading has state CANCEL:
>>> test = OrgDataStructure()
>>> test.add_todo_state('CANCEL')
>>> test.load_from_file(file_name)
>>> print test.root.content[0].todo
CANCEL