File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 8
8
class FindAll (object ):
9
9
"""A mixin that provides `find_all` functionality."""
10
10
11
+ proxy_class = CollectionProxy
12
+
11
13
def find_all (self , ** params ):
12
14
"""Find all instances of the resource based on the supplied parameters."""
13
15
collection = utils .resource_class_to_collection_name (
@@ -17,6 +19,6 @@ def find_all(self, **params):
17
19
else :
18
20
finder_url = "/%s" % (collection )
19
21
finder_params = params
20
- return CollectionProxy (
22
+ return self . proxy_class (
21
23
self .client , self .collection_class , collection ,
22
24
finder_url , finder_params )
Original file line number Diff line number Diff line change 3
3
from intercom import event
4
4
from intercom .api_operations .bulk import Submit
5
5
from intercom .api_operations .save import Save
6
+ from intercom .api_operations .find_all import FindAll
6
7
from intercom .service .base_service import BaseService
8
+ from intercom .collection_proxy import CollectionProxy
7
9
8
10
9
- class Event (BaseService , Save , Submit ):
11
+ class EventCollectionProxy (CollectionProxy ):
12
+
13
+ def paging_info_present (self , response ):
14
+ return 'pages' in response and 'next' in response ['pages' ]
15
+
16
+
17
+ class Event (BaseService , Save , Submit , FindAll ):
18
+
19
+ proxy_class = EventCollectionProxy
10
20
11
21
@property
12
22
def collection_class (self ):
You can’t perform that action at this time.
0 commit comments