Skip to content

Commit

Permalink
Merge pull request #653 from shenrie/master
Browse files Browse the repository at this point in the history
Exposing pagination arguments to RR find service operations
  • Loading branch information
shenrie committed Mar 7, 2013
2 parents dc476cc + 7ef5269 commit b0a82a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion extern/ion-definitions
12 changes: 6 additions & 6 deletions ion/services/coi/resource_registry_service.py
Expand Up @@ -105,24 +105,24 @@ def read_object(self, subject="", predicate="", object_type="", assoc="", id_onl
object_type=object_type, assoc=assoc, id_only=id_only)

@mask_couch_error
def find_objects(self, subject="", predicate="", object_type="", id_only=False):
def find_objects(self, subject="", predicate="", object_type="", id_only=False, limit=0, skip=0, descending=False):
return self.resource_registry.find_objects(subject=subject, predicate=predicate,
object_type=object_type, id_only=id_only)
object_type=object_type, id_only=id_only, limit=limit, skip=skip, descending=descending)

@mask_couch_error
def read_subject(self, subject_type="", predicate="", object="", assoc="", id_only=False):
return self.resource_registry.read_subject(subject_type=subject_type, predicate=predicate,
object=object, assoc=assoc, id_only=id_only)

@mask_couch_error
def find_subjects(self, subject_type="", predicate="", object="", id_only=False):
def find_subjects(self, subject_type="", predicate="", object="", id_only=False, limit=0, skip=0, descending=False):
return self.resource_registry.find_subjects(subject_type=subject_type, predicate=predicate,
object=object, id_only=id_only)
object=object, id_only=id_only, limit=limit, skip=skip, descending=descending)

@mask_couch_error
def find_associations(self, subject="", predicate="", object="", assoc_type=None, id_only=False):
def find_associations(self, subject="", predicate="", object="", assoc_type=None, id_only=False, limit=0, skip=0, descending=False):
return self.resource_registry.find_associations(subject=subject, predicate=predicate,
object=object, assoc_type=assoc_type, id_only=id_only)
object=object, assoc_type=assoc_type, id_only=id_only, limit=limit, skip=skip, descending=descending)
@mask_couch_error
def find_objects_mult(self, subjects=[], id_only=False):
return self.resource_registry.find_objects_mult(subjects=subjects, id_only=id_only)
Expand Down

0 comments on commit b0a82a7

Please sign in to comment.