[Mpuls-commits] r5366 - base/trunk/mpulsweb/lib
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Sep 16 16:57:51 CEST 2011
Author: torsten
Date: 2011-09-16 16:57:51 +0200 (Fri, 16 Sep 2011)
New Revision: 5366
Modified:
base/trunk/mpulsweb/lib/metaclient.py
Log:
Added new method to call meta-api to fetch a list of participating agencies.
Modified: base/trunk/mpulsweb/lib/metaclient.py
===================================================================
--- base/trunk/mpulsweb/lib/metaclient.py 2011-09-16 09:45:12 UTC (rev 5365)
+++ base/trunk/mpulsweb/lib/metaclient.py 2011-09-16 14:57:51 UTC (rev 5366)
@@ -299,6 +299,14 @@
"""
return self.perform_get_request("/meta/cases/%s" % uuid)
+ def meta_agencies_as_html(self, uuid):
+ """Return a list of participating agencies for the dataset with the
+ given uuid.
+ The return value is a string containing the dataset rendered as
+ HTML.
+ """
+ return self.perform_get_request("/meta/cases/%s/agencies" % uuid)
+
def upload_new_case(self, hash, xml):
response = self.perform_request("POST", "/meta/cases/hash/%s" % hash,
body=xml,
More information about the Mpuls-commits
mailing list