Project

General

Profile

« Previous | Next » 

Revision c3bd9816

Added by Marc Dequènes about 13 years ago

  • ID c3bd9816004d2064c4b0b87d071400a61c31c449

[evol] organized_data: added ignored attributes

View differences:

data/ldap_shadows/default_config/aspect.yaml
depend_aspects: []
associated_relations: []
associated_attributes: []
ignored_attributes: []
associate_unclaimed_attributes: false
interface:
attributes: {}
data/ldap_shadows/default_config/object.yaml
possible_aspects: []
associated_relations: []
associated_attributes: []
ignored_attributes: []
parent_handle_restrictions:
parent_dn_restrictions:
default_parent:
data/ldap_shadows/schema/aspect.yaml
type: seq
sequence:
- type: str
"ignored_attributes":
type: seq
sequence:
- type: str
"associate_unclaimed_attributes": {type: bool}
"interface":
type: map
data/ldap_shadows/schema/object.yaml
type: seq
sequence:
- type: str
"ignored_attributes":
type: seq
sequence:
- type: str
"parent_handle_restrictions": {type: str}
"parent_dn_restrictions": {type: str}
"default_parent": {type: str}
lib/ldap_shadows/elements/object.rb
taken_attr_list = self.class.parameters[:mapping][:associated_attributes]
taken_attr_list += self.class.possible_attributes
end
taken_attr_list -= self.class.parameters[:mapping][:ignored_attributes]
taken_attr_list = taken_attr_list.uniq & attr_list
taken_attr_list += self.class.virtual_attributes
taken_attr_list.each do |attr|
......
unless attr_list.empty?
self.aspects.values.each do |aspect|
taken_attr_list = (aspect.possible_attributes & attr_list)
taken_attr_list -= aspect.parameters[:mapping][:ignored_attributes]
taken_attr_list += aspect.virtual_attributes
unless taken_attr_list.empty?
taken_attr_list.each do |attr|

Also available in: Unified diff