diff options
| author | KnightHacker <khaled.hussein@rackspace.com> | 2011-04-21 03:35:40 -0500 |
|---|---|---|
| committer | KnightHacker <khaled.hussein@rackspace.com> | 2011-04-21 03:35:40 -0500 |
| commit | 2365a53b04d9d4b71bfb7f7b3d4bea54158ee40b (patch) | |
| tree | 8898296ab3b8103eba10a6e984f9ea80444cbf63 | |
| parent | a507f1e14ae81af08156f0e0b4c4c937378101be (diff) | |
Sample service.py with sqlalchemy
| -rw-r--r-- | keystone/logic/service.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/keystone/logic/service.py b/keystone/logic/service.py index 7fac54d8..c7b1aa22 100644 --- a/keystone/logic/service.py +++ b/keystone/logic/service.py @@ -17,6 +17,7 @@ import keystone.logic.types.auth as auth import keystone.logic.types.tenant as tenant import keystone.logic.types.atom as atom import keystone.logic.types.fault as fault +import keystone.db.sqlalchemy.api as db_api class IDMService(object): @@ -45,7 +46,8 @@ class IDMService(object): True def get_tenant(self, admin_token, tenant_id): - True + #TODO: Validate the admin_token + return db_api.tenant_get(tenant_id) def get_tenants(self, admin_token, marker, limit): True @@ -65,3 +67,4 @@ class IDMService(object): if not admin_token: raise fault.ForbiddenFault("You are not authorized this operation") True + |
