aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/storage
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2010-01-18 14:22:11 -0500
committerW. Trevor King <wking@drexel.edu>2010-01-18 14:22:11 -0500
commitd1a6fe5580485e2de745c356dc1d053b0cf233a5 (patch)
tree1b4f8b1c4960508e807c979388ac2e830c49100a /libbe/storage
parentcf6ca270ea59b3a2afbdd83e65c8e81760f85633 (diff)
downloadbugseverywhere-d1a6fe5580485e2de745c356dc1d053b0cf233a5.tar.gz
Add .changed support to HTTP storage backend.
Also work around urlparse.parse_qs location in Python <= 2.5.
Diffstat (limited to 'libbe/storage')
-rw-r--r--libbe/storage/http.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/libbe/storage/http.py b/libbe/storage/http.py
index f7b0316..2de2aff 100644
--- a/libbe/storage/http.py
+++ b/libbe/storage/http.py
@@ -234,6 +234,15 @@ class HTTP (base.VersionedStorage):
raise base.InvalidID(id)
return page.rstrip('\n')
+ def changed(self, revision=None):
+ url = urlparse.urljoin(self.repo, 'changed')
+ page,final_url,info = get_post_url(
+ url, get=True,
+ data_dict={'revision':revision})
+ lines = page.strip('\n')
+ new,mod,rem = [p.splitlines() for p in page.split('\n\n')]
+ return (new, mod, rem)
+
def check_storage_version(self):
version = self.storage_version()
if version != libbe.storage.STORAGE_VERSION: