diff options
| author | termie <github@anarkystic.com> | 2012-01-12 14:28:22 -0800 |
|---|---|---|
| committer | termie <github@anarkystic.com> | 2012-01-12 14:28:22 -0800 |
| commit | 7b0f71bce4645447f6aa342cb81d554d6b19d3de (patch) | |
| tree | 3b28560871fa0dd80d8e73e0f04b219d8b29ace0 | |
| parent | deab5c450692fd2f1ec97ef61bf9143b35007fe4 (diff) | |
add some docs to manager
| -rw-r--r-- | keystone/manager.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/keystone/manager.py b/keystone/manager.py index 566d2a23..d6d1f602 100644 --- a/keystone/manager.py +++ b/keystone/manager.py @@ -7,10 +7,23 @@ from keystone import utils class Manager(object): + """Base class for intermediary request layer. + + The Manager layer exists to support additional logic that applies to all + or some of the methods exposed by a service that are not specific to the + HTTP interface. + + It also provides a stable entry point to dynamic backends. + + An example of a probable use case is logging all the calls. + + """ + def __init__(self, driver_name): self.driver = utils.import_object(driver_name) def __getattr__(self, name): + """Forward calls to the underlying driver.""" # NOTE(termie): context is the first argument, we're going to strip # that for now, in the future we'll probably do some # logging and whatnot in this class |
