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