Imported initial services api

This commit is contained in:
2010-02-24 16:04:38 +00:00
committed by root
parent b8e5647148
commit f68e2be1f9
2 changed files with 261 additions and 0 deletions

30
sso/services/__init__.py Normal file
View File

@@ -0,0 +1,30 @@
class BaseService():
"""
Base Service class, all service classes should inherit from this
"""
def add_user(self, username, password):
""" Add a user """
pass
def set_corp(self, username):
""" User is in corp, enable extra privs """
pass
def delete_user(self, username):
""" Delete a user """
pass
def disable_user(self, username):
""" Disable a user """
pass
def enable_user(self, username):
""" Enable a user """
pass
def check_user(self, username):
""" Check if the username exists """
pass