Making null_backend mirror the interface created for rtm_backend
authorEd Page <eopage@byu.net>
Sat, 18 Apr 2009 01:02:31 +0000 (20:02 -0500)
committerEd Page <eopage@byu.net>
Sat, 18 Apr 2009 01:02:31 +0000 (20:02 -0500)
src/null_backend.py
src/rtm_view.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")
index 1749e0e..27bd95a 100644 (file)
@@ -128,9 +128,6 @@ def item_sort_by_fuzzydate_then_priority(items):
 
 
 class ItemListView(object):
-       """
-       @bug Not all columns are visible on maemo
-       """
 
        ID_IDX = 0
        COMPLETION_IDX = 1