Пример #1
0
 def find_resources_ext(self, restype='', lcstate='', name='', keyword='', nested_type='', attr_name='', attr_value='',
                        alt_id='', alt_id_ns='', limit=0, skip=0, descending=False, id_only=False, query=''):
     access_args = create_access_args(current_actor_id=get_ion_actor_id(self._process),
                                      superuser_actor_ids=self._rr.get_superuser_actors())
     return self._rr.find_resources_ext(restype=restype, lcstate=lcstate, name=name,
         keyword=keyword, nested_type=nested_type, attr_name=attr_name, attr_value=attr_value,
         alt_id=alt_id, alt_id_ns=alt_id_ns,
         limit=limit, skip=skip, descending=descending,
         id_only=id_only, query=query, access_args=access_args)
Пример #2
0
 def find_resources(self, restype="", lcstate="", name="", id_only=False):
     access_args = create_access_args(current_actor_id=get_ion_actor_id(self._process),
                                      superuser_actor_ids=self._rr.get_superuser_actors())
     return self._rr.find_resources(restype=restype, lcstate=lcstate, name=name, id_only=id_only,
                                                  access_args=access_args)
Пример #3
0
 def find_subjects_mult(self, objects=None, id_only=False, predicate=""):
     access_args = create_access_args(current_actor_id=get_ion_actor_id(self._process),
                                      superuser_actor_ids=self._rr.get_superuser_actors())
     return self._rr.find_subjects_mult(objects=objects, id_only=id_only,
                                                      predicate=predicate, access_args=access_args)
Пример #4
0
 def find_subjects(self, subject_type="", predicate="", object="", id_only=False, limit=0, skip=0, descending=False):
     access_args = create_access_args(current_actor_id=get_ion_actor_id(self._process),
                                      superuser_actor_ids=self._rr.get_superuser_actors())
     return self._rr.find_subjects(subject_type=subject_type, predicate=predicate,
         object=object, id_only=id_only,
         limit=limit, skip=skip, descending=descending, access_args=access_args)
Пример #5
0
 def create_attachment(self, resource_id='', attachment=None):
     return self._rr.create_attachment(resource_id=resource_id, attachment=attachment, actor_id=get_ion_actor_id(self._process))
Пример #6
0
 def create(self, object=None):
     return self._rr.create(object=object, actor_id=get_ion_actor_id(self._process))