Adding a quick note to helper functions so its clear what they do and

they don't get misused.

Change-Id: Ie0292df9d9e565ccd608b6b61ead57dfff1d3797
This commit is contained in:
David Goetz 2013-02-27 09:36:08 -08:00
parent 2a119b650e
commit 7e3adf5688

View File

@ -210,6 +210,8 @@ def get_container_info(env, app, swift_source=None):
"""
Get the info structure for a container, based on env and app.
This is useful to middlewares.
Note: This call bypasses auth. Success does not imply that the
request has authorization to the container_info.
"""
cache = cache_from_env(env)
if not cache:
@ -237,6 +239,8 @@ def get_account_info(env, app, swift_source=None):
"""
Get the info structure for an account, based on env and app.
This is useful to middlewares.
Note: This call bypasses auth. Success does not imply that the
request has authorization to the account_info.
"""
cache = cache_from_env(env)
if not cache: