forked from bjonnh/PyOrgMode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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[0].todo DONE
- Loading branch information
Mark Wolf
committed
Sep 26, 2012
1 parent
4419526
commit 59e1877
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.