Transitioned severity to Command-format, also added Command._get_*()
authorW. Trevor King <wking@drexel.edu>
Tue, 15 Dec 2009 04:15:58 +0000 (23:15 -0500)
committerW. Trevor King <wking@drexel.edu>
Tue, 15 Dec 2009 04:15:58 +0000 (23:15 -0500)
commit1b9c628529848af370adbc67b5ba298236a1b86d
treedd16c447d971297637b59128c383c942a5578d1e
parent0786fc6693e40cdfaca7876b504acb3e5e7dc4d2
Transitioned severity to Command-format, also added Command._get_*()

The old
  .requires_*
thing was rediculous.  The new ._get_*() callbacks allow the caller
to provide a means for getting the expensive structures, which the
command can use, or not, as required.  This will also make it easier
to implement the completion callbacks.

The callbacks should probably have matching .set_*() methods, to
avoid the current cache tweaking
  cmd._storage = ...
etc.  But that can wait for now...
17 files changed:
libbe/command/assign.py
libbe/command/base.py
libbe/command/comment.py
libbe/command/commit.py
libbe/command/depend.py
libbe/command/due.py
libbe/command/help.py
libbe/command/html.py
libbe/command/import_xml.py
libbe/command/init.py
libbe/command/list.py
libbe/command/merge.py
libbe/command/new.py
libbe/command/remove.py
libbe/command/severity.py
libbe/ui/command_line.py
libbe/ui/util/cmdutil.py