Project

General

Profile

« Previous | Next » 

Revision 139d6855

Added by Marc Dequènes about 15 years ago

  • ID 139d6855c59eafe678c8b31dcafd1af217c4e93a

[cleanup] removed useless code

View differences:

bin/shadowwalker
raise PreProcessingError, _("No such object '%s'") % obj_hdl if obj_klass.nil?
obj_klass
end
def params_shift_item_handle(obj_klass, args)
raise SyntaxError, _("no item name given") if args.empty?
attr_list = ["*"]
attr_list << "+" if $program_options[:admin]
item_hdl = args.shift.downcase
begin
item = obj_klass.find(item_hdl, :attributes => attr_list)
rescue ActiveLdap::EntryNotFound
raise PreProcessingError, _("No such item '%s/%s'") % [obj_klass.handle, item_hdl]
end
item
end
end
class ListCommand < Command

Also available in: Unified diff