adding method for confirming a superevent as a GW

parent 330c7864
......@@ -923,6 +923,21 @@ class GraceDb(GsiRest):
else:
yield superevent
def confirm_superevent_as_gw(self, superevent_id):
"""
Upgrade a superevent's state to 'confirmed GW'.
Requires specific server-side permissions.
Signature:
confirm_superevent_as_gw(superevent_id)
Arguments:
superevent_id
"""
template = self.templates['superevent-confirm-as-gw-template']
uri = template.format(superevent_id=superevent_id)
return self.post(uri)
@event_or_superevent
def files(self, object_id, filename="", *args, **kwargs):
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment