Use the helper function in the new capability
Revolutionary and magical.
This commit is contained in:
parent
fae4470101
commit
6ad93c7ea9
1 changed files with 1 additions and 2 deletions
|
|
@ -39,8 +39,7 @@ class Book(CapBaseObject):
|
||||||
class ICapBook(ICapCollection):
|
class ICapBook(ICapCollection):
|
||||||
def iter_resources(self, objs, split_path):
|
def iter_resources(self, objs, split_path):
|
||||||
if Book in objs:
|
if Book in objs:
|
||||||
if len(split_path) > 0:
|
self._restrict_level(split_path)
|
||||||
raise CollectionNotFound(split_path)
|
|
||||||
|
|
||||||
return self.iter_books()
|
return self.iter_books()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue