def __init__(self, oid, branch, read_access = None, write_access = None, users = None, groups = None, all_users = None, recursive = None): super(Permission, self).__init__(oid, branch) self.read_access = storagevalue.StorageBool(self, 'read_access', read_access) self.write_access = storagevalue.StorageBool(self, 'write_access', write_access) self.users = storagevalue.StorageNodeList(self, 'users', users, self._validateUsers) self.groups = storagevalue.StorageNodeList(self, 'groups', groups, self._validateGroups) self.all_users = storagevalue.StorageBool(self, 'all_users', all_users) self.recursive = storagevalue.StorageBool(self, 'recursive', recursive)
def __init__(self, oid, branch, username=None, administrator=None): super(UserLDAP, self).__init__(oid, branch) self._username = storagevalue.StorageValue(self, 'username', username) self._administrator = storagevalue.StorageBool(self, 'administrator', administrator) self._password_hash = storagevalue.StorageValue( self, 'password-hash', None)
def __init__(self, oid, branch, username=None, password=None, administrator=None): super(UserLocal, self).__init__(oid, branch) self._username = storagevalue.StorageValue(self, 'username', username) self._password = storagevalue.StorageValue(self, 'password', password) self._administrator = storagevalue.StorageBool(self, 'administrator', administrator)
def __init__(self, oid, branch, inheritance_only=None, inherited_templates=None): super(BaseTemplate, self).__init__(oid, branch) self.inheritance_only = storagevalue.StorageBool( self, 'inheritance_only', inheritance_only) self.inherited_templates = storagevalue.StorageNodeList( self, 'inherited', inherited_templates, self._validateInherited) self.sequences = {}