projects
/
doneit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7119032
)
Renaming managers to backend to conform with DialCentral
author
Ed Page
<eopage@byu.net>
Sat, 18 Apr 2009 16:09:51 +0000
(11:09 -0500)
committer
Ed Page
<eopage@byu.net>
Sat, 18 Apr 2009 16:09:51 +0000
(11:09 -0500)
src/file_backend.py
patch
|
blob
|
history
src/null_backend.py
patch
|
blob
|
history
src/null_view.py
patch
|
blob
|
history
src/rtm_backend.py
patch
|
blob
|
history
src/rtm_view.py
patch
|
blob
|
history
diff --git
a/src/file_backend.py
b/src/file_backend.py
index
93cee59
..
7ff2627
100644
(file)
--- a/
src/file_backend.py
+++ b/
src/file_backend.py
@@
-5,7
+5,7
@@
import datetime
import toolbox
import toolbox
-class FileManager(object):
+class FileBackend(object):
def __init__(self, filename):
self._filename = filename
def __init__(self, filename):
self._filename = filename
@@
-47,7
+47,7
@@
class FileManager(object):
projDetails["isVisible"] = False
def get_projects(self):
projDetails["isVisible"] = False
def get_projects(self):
- return (projectDetails for projectDetails in self._projects.itervalues())
+ return self._projects.itervalues()
def get_project(self, projId):
return self._projects[projId]
def get_project(self, projId):
return self._projects[projId]
@@
-65,7
+65,7
@@
class FileManager(object):
return todoList[0]
def get_locations(self):
return todoList[0]
def get_locations(self):
- return (locDetails for locDetails in self._locations.itervalues())
+ return self._locations.itervalues()
def get_tasks_with_details(self, projId):
return (
def get_tasks_with_details(self, projId):
return (
diff --git
a/src/null_backend.py
b/src/null_backend.py
index
d70d55e
..
4828551
100644
(file)
--- a/
src/null_backend.py
+++ b/
src/null_backend.py
@@
-1,4
+1,4
@@
-class NullManager(object):
+class NullBackend(object):
def __init__(self, username, password, token=None):
pass
def __init__(self, username, password, token=None):
pass
diff --git
a/src/null_view.py
b/src/null_view.py
index
dc9aad5
..
35bb296
100644
(file)
--- a/
src/null_view.py
+++ b/
src/null_view.py
@@
-15,7
+15,7
@@
class GtkNull(object):
self._todoBox = widgetTree.get_widget("todoBox")
self._todoAreaFiller = gtk.Label()
self._todoBox = widgetTree.get_widget("todoBox")
self._todoAreaFiller = gtk.Label()
- self._manager = null_backend.NullManager("", "")
+ self._manager = null_backend.NullBackend("", "")
@staticmethod
def name():
@staticmethod
def name():
diff --git
a/src/rtm_backend.py
b/src/rtm_backend.py
index
d724d13
..
4aab70e
100644
(file)
--- a/
src/rtm_backend.py
+++ b/
src/rtm_backend.py
@@
-12,7
+12,7
@@
def fix_url(rturl):
return "/".join(rturl.split(r"\/"))
return "/".join(rturl.split(r"\/"))
-class RtMilkManager(object):
+class RtmBackend(object):
"""
Interface with rememberthemilk.com
"""
Interface with rememberthemilk.com
@@
-250,7
+250,7
@@
class RtMilkManager(object):
@staticmethod
def _pack_ids(*ids):
"""
@staticmethod
def _pack_ids(*ids):
"""
- >>> RtMilkManager._pack_ids(123, 456)
+ >>> RtmBackend._pack_ids(123, 456)
'123-456'
"""
return "-".join((str(id) for id in ids))
'123-456'
"""
return "-".join((str(id) for id in ids))
@@
-258,7
+258,7
@@
class RtMilkManager(object):
@staticmethod
def _unpack_ids(ids):
"""
@staticmethod
def _unpack_ids(ids):
"""
- >>> RtMilkManager._unpack_ids("123-456")
+ >>> RtmBackend._unpack_ids("123-456")
['123', '456']
"""
return ids.split("-")
['123', '456']
"""
return ids.split("-")
diff --git
a/src/rtm_view.py
b/src/rtm_view.py
index
27bd95a
..
bbbdfc3
100644
(file)
--- a/
src/rtm_view.py
+++ b/
src/rtm_view.py
@@
-73,7
+73,7
@@
def get_token(username, apiKey, secret):
def get_credentials(credentialsDialog):
username, password = credentialsDialog.request_credentials()
def get_credentials(credentialsDialog):
username, password = credentialsDialog.request_credentials()
- token = get_token(username, rtm_backend.RtMilkManager.API_KEY, rtm_backend.RtMilkManager.SECRET)
+ token = get_token(username, rtm_backend.RtmBackend.API_KEY, rtm_backend.RtmBackend.SECRET)
return username, password, token
return username, password, token
@@
-469,7
+469,7
@@
class GtkRtMilk(object):
credentials = self._credentials
while True:
try:
credentials = self._credentials
while True:
try:
- self._manager = rtm_backend.RtMilkManager(*credentials)
+ self._manager = rtm_backend.RtmBackend(*credentials)
self._credentials = credentials
return # Login succeeded
except rtm_api.AuthStateMachine.NoData:
self._credentials = credentials
return # Login succeeded
except rtm_api.AuthStateMachine.NoData: