keystone/keystone
Boris Bobrov 7b6364a4f8 Use the driver to get limits
@response_truncated was used to set the limit of returned entries. It
asked the driver about the limit and set it to hints. With
domain-specific configs, there are multiple driver instances and each of
them carries domain-specific config.

However, with domain-specific configs, the driver is not yet configured
at that point, because sometimes the manager needs to perform additional
actions in order to understand what domain it works with. Because of
that, @response_truncated always got the limit from the default driver,
not from the one actually used for the domain.

Move the logic of setting the limit from the decorator to a private
method, call it after determining the domain and driver.

Change-Id: I1748d491b047e33712380da731c272f9d471ec0a
Closes-Bug: 1495669
2016-02-17 18:53:20 +03:00
..
assignment Merge "Implied Roles API" 2016-02-03 19:22:36 +00:00
auth Add support for strict url safe option on new projects and domains 2016-01-19 03:47:31 +00:00
catalog Removes KVS catalog backend 2016-01-19 21:26:30 -05:00
cmd Merge "Replace exit() with sys.exit()" 2016-02-09 04:45:47 +00:00
common Small typos on the ldap.url config option help 2016-02-08 16:42:08 -08:00
contrib Move user and admin crud to core 2016-02-06 15:44:12 +00:00
credential Add `type' filter for list_credentials_for_user 2015-12-11 01:02:38 -05:00
endpoint_policy Reference driver methods through the Manager 2016-01-07 14:44:02 -06:00
federation Merge "Make WebSSO trusted_dashboard hostname case-insensitive" 2016-02-03 07:23:38 +00:00
identity Use the driver to get limits 2016-02-17 18:53:20 +03:00
locale Imported Translations from Zanata 2016-02-08 06:30:03 +00:00
middleware Trival: Remove unused logging import 2015-12-26 15:14:25 +08:00
models Use the oslo.utils.reflection to extract the class name 2016-01-28 13:05:34 +08:00
oauth1 Add schema for OAuth1 consumer API 2016-02-02 14:12:53 +08:00
policy Remove exposure of routers at package level 2015-12-03 15:06:56 -03:00
resource Add list_limit to the white list for configs in db 2016-02-17 18:53:20 +03:00
revoke Removed deprecated revoke KVS backend 2016-01-25 01:08:15 -08:00
server Add caching to role assignments 2016-01-27 15:52:58 +00:00
tests Use the driver to get limits 2016-02-17 18:53:20 +03:00
token Merge "Consolidate the fernet provider issue_v2_token()" 2016-02-05 09:07:49 +00:00
trust Fix trust redelegation and associated test 2016-01-25 19:19:37 +00:00
v2_crud Move user and admin crud to core 2016-02-06 15:44:12 +00:00
version Move user and admin crud to core 2016-02-06 15:44:12 +00:00
__init__.py Revert "Disable eventlet monkey-patching of DNS" 2013-05-10 10:24:48 -04:00
exception.py Merge "Implied Roles API" 2016-02-03 19:22:36 +00:00
i18n.py Change oslo.i18n to oslo_i18n 2015-02-09 18:10:07 -06:00
notifications.py Opt-out certain Keystone Notifications 2016-02-05 04:32:15 -05:00
service.py Create a version package 2015-10-12 23:59:16 +00:00