Various changes to several aspects of the model base.

* Added SSOUser extension profile for auth
* Now checks for Corp membership and executes required commands
* Various small fixups
This commit is contained in:
2010-02-25 15:49:56 +00:00
committed by dreddit
parent 4cd4865f32
commit 53630f980f
10 changed files with 95 additions and 31 deletions

View File

@@ -1,11 +1,11 @@
def get_api(api):
try:
mod = __import__(self.service.api)
mod = __import__(api)
except ImportError:
raise DoesNotExist('Error creating service')
for i in self.service.api.spit(".")[1:]:
for i in api.split(".")[1:]:
mod = getattr(mod, i)
return getattr(mod, mod.ServiceClass)()
@@ -33,7 +33,7 @@ class BaseService():
""" Disable a user """
pass
def enable_user(self, username):
def enable_user(self, username, password):
""" Enable a user """
pass