Ejemplo n.º 1
0
 def status_getter():
     return self.antioch.get(
         uri=util.endpoint_uri(self.endpoint, uuid, 'text', 'status'))
Ejemplo n.º 2
0
 def getter():
     return self.antioch.get(
         util.endpoint_uri(self.endpoint, uuid, 'text', 'xml'))
Ejemplo n.º 3
0
 def resource_state_uri(self, uuid):
     return util.endpoint_uri(self.endpoint, uuid, self.state)
Ejemplo n.º 4
0
 def setter():
     return self.antioch.put_data(uri=util.endpoint_uri(
         self.endpoint, uuid, 'text'),
                                  data=xml)
Ejemplo n.º 5
0
 def getter():
     return self.antioch.get(util.endpoint_uri(self.endpoint, uuid))
Ejemplo n.º 6
0
 def updater():
     return self.antioch.put(uri=util.endpoint_uri(self.endpoint, uuid),
                             data=proto.entity)
Ejemplo n.º 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)
Ejemplo n.º 8
0
 def poster():
     return self.antioch.post(uri=util.endpoint_uri(
         'commands', 'add-unique-id'),
                              data=cargo)
Ejemplo n.º 9
0
 def updater():
     return self.antioch.put(uri=util.endpoint_uri(
         self.endpoint, uuid, 'annotators', annotator.name),
                             data=annotator.entity)
Ejemplo n.º 10
0
 def getter():
     return self.antioch.get(
         util.endpoint_uri(self.endpoint, uuid, 'annotators'))
Ejemplo n.º 11
0
 def updater():
     return self.antioch.put(uri=util.endpoint_uri(
         self.endpoint, uuid, 'text', 'views', name),
                             data=view.entity)
Ejemplo n.º 12
0
 def getter():
     return self.antioch.get(
         util.endpoint_uri(self.endpoint, uuid, 'text', 'xml') +
         "?view=" + view_name)
Ejemplo n.º 13
0
 def status_getter():
     return self.antioch.get(uri=util.endpoint_uri(self.endpoint, self.uuid, 'text', 'status'))
Ejemplo n.º 14
0
 def poster():
     return self.post(util.endpoint_uri('commands', 'xpath'), entity)
Ejemplo n.º 15
0
 def poster():
     return self.post(util.endpoint_uri('commands', 'xpath'), entity)