Project

General

Profile

« Previous | Next » 

Revision 90809ae4

Added by Marc Dequènes about 15 years ago

  • ID 90809ae4611daed224702e4f6083c42f9277a4a4

[cleanup] internal rework #2

View differences:

bin/shadowwalker
raise SyntaxError, _("no object name given") if args.empty?
obj_hdl = args.shift.downcase.singularize
obj_klass = $shadow.find_klass(obj_hdl)
obj_klass = $shadow.get_object(obj_hdl)
raise PreProcessingError, _("No such object '%s'") % obj_hdl if obj_klass.nil?
obj_klass
end
......
sconfig = $shadow.get_config()
(sconfig[:presentation][:tree_objects] || []).each do |obj_hdl|
obj_klass = $shadow.find_klass(obj_hdl.downcase)
obj_klass = $shadow.get_object(obj_hdl.downcase)
unless obj_klass
raise PreProcessingError, _("Location object '%s' not defined") % obj_hdl
end

Also available in: Unified diff