Project

General

Profile

« Previous | Next » 

Revision b6fb956a

Added by Marc Dequènes about 15 years ago

  • ID b6fb956a36724f5519bfd30e3d4dc9d444ce0fed

[-] cleanup

View differences:

lib/ldap_shadows/controller.rb
obj_rel = {}
obj_rel.merge!(obj_def[:relations]) if obj_def.include?(:relations)
if obj_def[:presentation].has_key?(:allowed_aspects)
obj_def[:presentation][:allowed_aspects].each do |rel|
rel_data = get_aspect(rel)
if rel_data.nil?
STDERR.puts "Aspect '%s' is missing" % rel
obj_def[:presentation][:allowed_aspects].each do |aspect|
aspect_data = get_aspect(aspect)
if aspect_data.nil?
STDERR.puts "Aspect '%s' is missing" % aspect
exit 1
end
obj_rel.merge!(rel_data[:relations]) if rel_data.has_key?(:relations) and rel_data[:relations]
obj_rel.merge!(aspect_data[:relations]) if aspect_data.has_key?(:relations) and aspect_data[:relations]
end
end
next if obj_rel.empty?

Also available in: Unified diff