Repeating timestamps and better handling of TODO states. #13

Merged
merged 4 commits into from Oct 7, 2012

Conversation

Projects
None yet
2 participants
Contributor

m3wolf commented Oct 5, 2012

split TODO states into OrgNode.todo_states and OrgNode.done_states,
and added method OrgDataStructure.extract_todo_list.

Repeating timestamps can now be stored with the "+4w" string saved as
an attribute.

The new class OrgTodo holds individual todo items, useful for making todo lists
and agendas.

TODO states are now output properly in OrgNode._output().

There are now two lists of todo states: todo_states and done_states. A new method
was added to OrgDataStructure (add_todo_state) that allows for adding to the latter
list.

New method OrgDataStructure.extract_todo_list returns a list of OrgTodo states.
By default it returns states listed in OrgNode.todo_states but this can be modified
by arguments. It will raise an exception if a todo state is passed that is not on
either list since these will not be extracted properly during OrgDataStructure.load_from_file().

m3wolf added some commits Sep 28, 2012

@m3wolf m3wolf New method allows reading from string in addition to files.
Added a new method: OrgDataStructure.load_from_string(string)
      Similar to load_from_file except accepts a string as input. The string should be the contents of an org-mode file (complete with '\n') that is then passed to load_from_file and treated normally. This allows org-mode information to be saved in a database or other non-file storage.
b303288
@m3wolf m3wolf Merge remote-tracking branch 'upstream/master' a119702
@m3wolf m3wolf Repeating timestamps, new class OrgTodo, better handling of TODO stat…
…es in

OrgNode, split TODO states into OrgNode.todo_states and OrgNode.done_states,
and added method OrgDataStructure.extract_todo_list.

Repeating timestamps can now be stored with the "+4w" string saved as
an attribute.

The new class OrgTodo holds individual todo items, useful for making todo lists
and agendas.

TODO states are now output properly in OrgNode._output().

There are now two lists of todo states: todo_states and done_states. A new method
was added to OrgDataStructure (add_todo_state) that allows for adding to the latter
list.

New method OrgDataStructure.extract_todo_list returns a list of OrgTodo states.
By default it returns states listed in OrgNode.todo_states but this can be modified
by arguments. It will raise an exception if a todo state is passed that is not on
either list since these will not be extracted properly during OrgDataStructure.load_from_file().
d0ec4d9
@m3wolf m3wolf Remove OrgDataStructure.extract_agenda method placeholder.
I won't be working on it any time soon so it doesn't make sense to keep an
empty method around.
06dfc2b

@bjonnh bjonnh added a commit that referenced this pull request Oct 7, 2012

@bjonnh bjonnh Merge pull request #13 from m3wolf/master
Repeating timestamps and better handling of TODO states.
3e907fe

@bjonnh bjonnh merged commit 3e907fe into bjonnh:master Oct 7, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment