Refactoring

- Obsoleted Cmd object.
- Removed Context::dispatch, renamed dispatch2 --> dispatch.
- Commented out import and custom report functionality that depends
  on Cmd.  This should be about as broken as taskwarrior gets.  It's
  all uphill from here.
This commit is contained in:
Paul Beckingham
2011-06-02 00:17:16 -04:00
parent bcbff8d99b
commit a3912d9123
10 changed files with 62 additions and 323 deletions

View File

@@ -349,12 +349,13 @@ bool Att::validNameValue (
// Some attributes are intended to be private, unless the command is read-
// only, in which cased these are perfectly valid elements of a filter.
/*
if (context.cmd.isWriteCommand () &&
!validModifiableName (name))
throw std::string ("\"") +
name +
"\" is not an attribute you may modify directly.";
*/
else if (name == "priority")
{
if (value != "")
@@ -371,7 +372,7 @@ bool Att::validNameValue (
else if (name == "description")
{
if (context.cmd.isWriteCommand ())
// if (context.cmd.isWriteCommand ())
{
if (value == "")
throw std::string ("The '") + name + "' attribute must not be blank.";