Import YAML

- Implemented the import-yaml.pl external script.
- Added unit tests.
- Fixed problem where the pending tasks were not loaded prior to uuid
  verification.
This commit is contained in:
Paul Beckingham
2011-09-05 01:11:37 -04:00
parent fa973f734b
commit 751e8e7f90
4 changed files with 195 additions and 56 deletions

View File

@@ -1771,13 +1771,11 @@ int TDB2::id (const std::string& uuid)
}
////////////////////////////////////////////////////////////////////////////////
// Make sure the specified UUID does not already exist in the data.
bool TDB2::verifyUniqueUUID (const std::string& uuid)
{
if (pending.id (uuid) != 0 ||
completed.id (uuid) != 0)
return false;
return true;
pending.get_tasks ();
return pending.id (uuid) != 0 ? false : true;
}
////////////////////////////////////////////////////////////////////////////////