You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Pager generator takes in RequestOptions, but usage information for views.get() requires another parameter to be passed in. Currently, we cannot use Pager to get all views WITH usage information.
The text was updated successfully, but these errors were encountered:
Pager accepts any callable, so you can just pass in a partial.
from functools import partial
usage_pager = partial(server.views.get, usage=True)
views = TSC.Pager(usage_pager)
for view in views:
# do something
It could probably be a little cleaner but not sure how yet. We could have Pager take in *args and just blindly pass them to the callable, which works. Or we can document you should use a partial.
The Pager generator takes in RequestOptions, but usage information for views.get() requires another parameter to be passed in. Currently, we cannot use Pager to get all views WITH usage information.
The text was updated successfully, but these errors were encountered: