From 7b0f71bce4645447f6aa342cb81d554d6b19d3de Mon Sep 17 00:00:00 2001 From: termie Date: Thu, 12 Jan 2012 14:28:22 -0800 Subject: add some docs to manager --- keystone/manager.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 -- cgit