Making null_backend mirror the interface created for rtm_backend
[doneit] / src / null_backend.py
index 808d934..570d2cd 100644 (file)
@@ -3,8 +3,50 @@ class NullManager(object):
        def __init__(self, username, password, token=None):
                pass
 
+       def get_projects(self):
+               return []
+
+       def get_project(self, projId):
+               raise NotImplementedError("Not logged in to any ToDo system")
+
        def get_project_names(self):
                return []
 
-       def save_task(self, taskDesc, projName, priority, duedate=""):
+       def lookup_project(self, projName):
+               raise NotImplementedError("Not logged in to any ToDo system")
+
+       def get_locations(self):
+               return []
+
+       def get_tasks_with_details(self, projId):
+               return []
+
+       def get_task_details(self, taskId):
+               raise NotImplementedError("Not logged in to any ToDo system")
+
+       def add_task(self, projId, taskName):
+               raise NotImplementedError("Not logged in to any ToDo system")
+
+       def set_project(self, taskId, newProjId):
+               raise NotImplementedError("Not logged in to any ToDo system")
+
+       def set_name(self, taskId, name):
+               raise NotImplementedError("Not logged in to any ToDo system")
+
+       def set_duedate(self, taskId, dueDate):
+               raise NotImplementedError("Not logged in to any ToDo system")
+
+       def set_priority(self, taskId, priority):
+               raise NotImplementedError("Not logged in to any ToDo system")
+
+       def complete_task(self, taskId):
+               raise NotImplementedError("Not logged in to any ToDo system")
+
+       def add_note(self, taskId, noteTitle, noteBody):
+               raise NotImplementedError("Not logged in to any ToDo system")
+
+       def update_note(self, noteId, noteTitle, noteBody):
+               raise NotImplementedError("Not logged in to any ToDo system")
+
+       def delete_note(self, noteId):
                raise NotImplementedError("Not logged in to any ToDo system")