Project

General

Profile

« Previous | Next » 

Revision f695b998

Added by Marc Dequènes about 15 years ago

  • ID f695b998eda5a45d37fb7b18fd60b1434cc9c9c4

[fix] do not downcase the full handle, but only the object handle (fix RDN case when creating new items, and probably other problems)

View differences:

bin/shadowwalker
def params_shift_item_handle_full_handle(args, fetch_item = true, name = "item full-handle")
raise SyntaxError, _("no %s given") % name if args.empty?
full_handle = args.shift.downcase
full_handle = args.shift
raise SyntaxError, _("bad %s") % name unless full_handle =~ /^([a-zA-Z]+)\/(.+)$/
obj_hdl = $1
obj_hdl = $1.downcase
item_hdl = $2
split_args = [obj_hdl, item_hdl]

Also available in: Unified diff