diff options
author | W. Trevor King <wking@drexel.edu> | 2010-01-18 14:22:11 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2010-01-18 14:22:11 -0500 |
commit | d1a6fe5580485e2de745c356dc1d053b0cf233a5 (patch) | |
tree | 1b4f8b1c4960508e807c979388ac2e830c49100a /libbe/storage | |
parent | cf6ca270ea59b3a2afbdd83e65c8e81760f85633 (diff) | |
download | bugseverywhere-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.py | 9 |
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: |