diff options
author | W. Trevor King <wking@drexel.edu> | 2010-01-18 14:05:59 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2010-01-18 14:05:59 -0500 |
commit | cf6ca270ea59b3a2afbdd83e65c8e81760f85633 (patch) | |
tree | 5336b21b5b640891b2e9bf0d3714cd32364931a1 /libbe/storage/http.py | |
parent | 51f24ff4b3bae358ecd9903537885f4eaf0d1e4b (diff) | |
download | bugseverywhere-cf6ca270ea59b3a2afbdd83e65c8e81760f85633.tar.gz |
Add ancestors support to HTTP storage
Diffstat (limited to 'libbe/storage/http.py')
-rw-r--r-- | libbe/storage/http.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libbe/storage/http.py b/libbe/storage/http.py index 0792b1e..f7b0316 100644 --- a/libbe/storage/http.py +++ b/libbe/storage/http.py @@ -142,6 +142,13 @@ class HTTP (base.VersionedStorage): url, get=False, data_dict={'id':id, 'recursive':True}) + def _ancestors(self, id=None, revision=None): + url = urlparse.urljoin(self.repo, 'ancestors') + page,final_url,info = get_post_url( + url, get=True, + data_dict={'id':id, 'revision':revision}) + return page.strip('\n').splitlines() + def _children(self, id=None, revision=None): url = urlparse.urljoin(self.repo, 'children') page,final_url,info = get_post_url( |