Project

General

Profile

« Previous | Next » 

Revision cee99c3d

Added by Marc Dequènes almost 15 years ago

  • ID cee99c3df12fd44009a7669f050f0f0edb126bed

[evol] improve config #4 (check for missing aspect)

View differences:

lib/ldap_shadows/controller.rb
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
exit 1
end
obj_rel.merge!(rel_data[:relations]) if rel_data.has_key?(:relations) and rel_data[:relations]
end
end

Also available in: Unified diff