Beispiel #1
0
 def status_getter():
     return self.antioch.get(
         uri=util.endpoint_uri(self.endpoint, uuid, 'text', 'status'))
Beispiel #2
0
 def getter():
     return self.antioch.get(
         util.endpoint_uri(self.endpoint, uuid, 'text', 'xml'))
Beispiel #3
0
 def resource_state_uri(self, uuid):
     return util.endpoint_uri(self.endpoint, uuid, self.state)
Beispiel #4
0
 def setter():
     return self.antioch.put_data(uri=util.endpoint_uri(
         self.endpoint, uuid, 'text'),
                                  data=xml)
Beispiel #5
0
 def getter():
     return self.antioch.get(util.endpoint_uri(self.endpoint, uuid))
Beispiel #6
0
 def updater():
     return self.antioch.put(uri=util.endpoint_uri(self.endpoint, uuid),
                             data=proto.entity)
Beispiel #7
0
 def updater():
     import uuid as uuid_mod
     annotation_uuid = uuid_mod.uuid1()
     return self.antioch.put(uri=util.endpoint_uri(
         self.endpoint, uuid, 'text', 'annotations', annotation_uuid),
                             data=text_annotation.entity)
Beispiel #8
0
 def poster():
     return self.antioch.post(uri=util.endpoint_uri(
         'commands', 'add-unique-id'),
                              data=cargo)
Beispiel #9
0
 def updater():
     return self.antioch.put(uri=util.endpoint_uri(
         self.endpoint, uuid, 'annotators', annotator.name),
                             data=annotator.entity)
Beispiel #10
0
 def getter():
     return self.antioch.get(
         util.endpoint_uri(self.endpoint, uuid, 'annotators'))
Beispiel #11
0
 def updater():
     return self.antioch.put(uri=util.endpoint_uri(
         self.endpoint, uuid, 'text', 'views', name),
                             data=view.entity)
Beispiel #12
0
 def getter():
     return self.antioch.get(
         util.endpoint_uri(self.endpoint, uuid, 'text', 'xml') +
         "?view=" + view_name)
Beispiel #13
0
 def status_getter():
     return self.antioch.get(uri=util.endpoint_uri(self.endpoint, self.uuid, 'text', 'status'))
Beispiel #14
0
 def poster():
     return self.post(util.endpoint_uri('commands', 'xpath'), entity)
Beispiel #15
0
 def poster():
     return self.post(util.endpoint_uri('commands', 'xpath'), entity)