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