Please sign in to comment.
Added basic TODO functionality. Also added blank __init__.py file to …
…make this a proper module. Defaults to finding TODO or DONE states. Three new methods were added to the PyOrgMode.OrgDataStructure class: set_todo_states() -- Replaces all todo states with the passed list add_todo_state() -- Adds a given todo state to the current list get_todo_states() -- Returns a list of todo states Functionality was then added to the OrgNode class to handle finding and characterizing the TODO states. Example code if the first heading has state DONE: >>> test = OrgDataStructure() >>> test.add_todo_state('CANCEL') >>> test.load_from_file(file_name) >>> print test.root.content.todo DONE
- Loading branch information...