adding skeleton for most files

This commit is contained in:
kakwa 2015-04-15 21:13:14 +02:00
parent d6b595bc7d
commit 7ec0cb4e74
5 changed files with 80 additions and 0 deletions

View File

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# vim:set expandtab tabstop=4 shiftwidth=4:
#
# The MIT License (MIT)
# LdapCherry
# Copyright (c) 2014 Carpentier Pierre-Francois
class Backend:
def __init__(self):
pass
def add_group(self):
pass
def set_attr(self):
pass
def rm_group(self):
pass

View File

@ -0,0 +1,11 @@
# -*- coding: utf-8 -*-
# vim:set expandtab tabstop=4 shiftwidth=4:
#
# The MIT License (MIT)
# LdapCherry
# Copyright (c) 2014 Carpentier Pierre-Francois
class Backend(ldapcherry.backend.Backend):
def __init__(self, config, logger):
pass

View File

@ -0,0 +1,7 @@
# -*- coding: utf-8 -*-
# vim:set expandtab tabstop=4 shiftwidth=4:
#
# License GPLv3
# LdapCherry
# Copyright (c) 2014 Carpentier Pierre-Francois

7
ldapcherry/exceptions.py Normal file
View File

@ -0,0 +1,7 @@
# -*- coding: utf-8 -*-
# vim:set expandtab tabstop=4 shiftwidth=4:
#
# The MIT License (MIT)
# LdapCherry
# Copyright (c) 2014 Carpentier Pierre-Francois

35
ldapcherry/roles.py Normal file
View File

@ -0,0 +1,35 @@
# -*- coding: utf-8 -*-
# vim:set expandtab tabstop=4 shiftwidth=4:
#
# The MIT License (MIT)
# LdapCherry
# Copyright (c) 2014 Carpentier Pierre-Francois
import os
import sys
try:
from yaml import CLoader as Loader, CDumper as Dumper
except ImportError:
from yaml import Loader, Dumper
class Roles:
def __init__(self, role_file):
pass
def _nest(self, role_file):
"""nests the roles (creates roles hierarchy)"""
pass
def write(self, out_file):
"""write the nested role hierarchy to a file"""
pass
def get_roles(self, groups):
"""get list of roles and list of standalone groups"""
pass
def get_groups(self, roles):
"""get the list of groups from roles"""
pass