示例#1
0
文件: ldap.py 项目: jpic/keystone
 def update_group(self, group_id, group):
     msg = _DEPRECATION_MSG % "update_group"
     versionutils.report_deprecated_feature(LOG, msg)
     self.group.check_allow_update()
     if 'name' in group:
         group['name'] = clean.group_name(group['name'])
     return common_ldap.filter_entity(self.group.update(group_id, group))
示例#2
0
 def update_group(self, group_id, group):
     msg = _DEPRECATION_MSG % "update_group"
     versionutils.report_deprecated_feature(LOG, msg)
     self.group.check_allow_update()
     if 'name' in group:
         group['name'] = clean.group_name(group['name'])
     return common_ldap.filter_entity(self.group.update(group_id, group))
示例#3
0
文件: ldap.py 项目: Lactem/keystone
 def get_filtered(self, group_id):
     group = self.get(group_id)
     return common_ldap.filter_entity(group)
示例#4
0
文件: ldap.py 项目: Lactem/keystone
 def filter_attributes(self, user):
     return identity.filter_user(common_ldap.filter_entity(user))
示例#5
0
文件: ldap.py 项目: Lactem/keystone
 def update_group(self, group_id, group):
     self.group.check_allow_update()
     if 'name' in group:
         group['name'] = clean.group_name(group['name'])
     return common_ldap.filter_entity(self.group.update(group_id, group))
示例#6
0
文件: ldap.py 项目: Lactem/keystone
 def create_group(self, group_id, group):
     self.group.check_allow_create()
     group['name'] = clean.group_name(group['name'])
     return common_ldap.filter_entity(self.group.create(group))
示例#7
0
 def get_all_filtered(self, hints, query=None):
     query = self.filter_query(hints, query)
     return [
         common_ldap.filter_entity(group) for group in self.get_all(query)
     ]
示例#8
0
 def get_filtered_by_name(self, group_name):
     group = self.get_by_name(group_name)
     return common_ldap.filter_entity(group)
示例#9
0
 def create_group(self, group_id, group):
     msg = _DEPRECATION_MSG % "create_group"
     versionutils.report_deprecated_feature(LOG, msg)
     self.group.check_allow_create()
     group["name"] = clean.group_name(group["name"])
     return common_ldap.filter_entity(self.group.create(group))
示例#10
0
 def filter_attributes(self, user):
     return identity.filter_user(common_ldap.filter_entity(user))
示例#11
0
 def update_group(self, group_id, group):
     self.group.check_allow_update()
     if 'name' in group:
         group['name'] = clean.group_name(group['name'])
     return common_ldap.filter_entity(self.group.update(group_id, group))
示例#12
0
 def create_group(self, group_id, group):
     self.group.check_allow_create()
     group['name'] = clean.group_name(group['name'])
     return common_ldap.filter_entity(self.group.create(group))
示例#13
0
文件: ldap.py 项目: raildo/keystone-1
 def get_all_filtered(self, query=None):
     return [common_ldap.filter_entity(group) for group in self.get_all(query)]
示例#14
0
 def get_all_filtered(self, query=None):
     return [common_ldap.filter_entity(group)
             for group in self.get_all(query)]
示例#15
0
文件: ldap.py 项目: Lactem/keystone
 def get_filtered_by_name(self, group_name):
     group = self.get_by_name(group_name)
     return common_ldap.filter_entity(group)
示例#16
0
 def get_filtered(self, group_id):
     group = self.get(group_id)
     return common_ldap.filter_entity(group)
示例#17
0
文件: ldap.py 项目: Lactem/keystone
 def get_all_filtered(self, hints, query=None):
     query = self.filter_query(hints, query)
     return [common_ldap.filter_entity(group)
             for group in self.get_all(query)]
示例#18
0
文件: ldap.py 项目: rsamban/keystone
 def create_group(self, group_id, group):
     msg = _DEPRECATION_MSG % "create_group"
     versionutils.report_deprecated_feature(LOG, msg)
     self.group.check_allow_create()
     return common_ldap.filter_entity(self.group.create(group))