Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Repeating timestamps and better handling of TODO states. #13

merged 4 commits into from Oct 7, 2012
Commits on Sep 28, 2012
  1. New method allows reading from string in addition to files.

    Mark Wolf committed Sep 28, 2012
    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.
  2. Merge remote-tracking branch 'upstream/master'

    Mark Wolf committed Sep 28, 2012
Commits on Oct 2, 2012
  1. Repeating timestamps, new class OrgTodo, better handling of TODO stat…

    Mark Wolf committed Oct 2, 2012
    …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
    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().
Commits on Oct 5, 2012
  1. Remove OrgDataStructure.extract_agenda method placeholder.

    Mark Wolf committed Oct 5, 2012
    I won't be working on it any time soon so it doesn't make sense to keep an
    empty method around.