Opened 10 years ago

Closed 8 years ago

#9508 closed enhancement (wontfix)

implement dictionnary methods to retrieve keys based on provided value

Reported by: remy damour Owned by: Tom Trenka
Priority: high Milestone: future
Component: Dojox Version: 1.3.1
Keywords: Cc:
Blocked By: Blocking:

Description

Current implementation of dojox.collections.Dictionnary (rev. 18735) allows to retrieve values based on keys, but I did not find any method to retrieve one or more keys of a provided value.

Since I did felt the need for it, I made a patch attached to this ticket.

If there is another way to retrieve dictionary key(s) by providing a dictionary value, I apologize for the waste of time.

Regards, Remy

Attachments (1)

Dictionary_key-retriever_rev18735#9508.patch (843 bytes) - added by remy damour 10 years ago.
patch against rev. 18735

Download all attachments as: .zip

Change History (6)

Changed 10 years ago by remy damour

patch against rev. 18735

comment:1 Changed 10 years ago by Adam Peller

Owner: changed from Adam Peller to Tom Trenka

comment:2 Changed 10 years ago by Tom Trenka

Milestone: tbd1.5

comment:3 Changed 9 years ago by Tom Trenka

Milestone: 1.51.6

I actually didn't include these methods on purpose, believe it or not; finding keys based on a value is kind of deceptive, particularly if you have something like a bool for a value or even an object.

Going to punt this one for 1.5 and push it back to 1.6, and maybe ask the community at large if this is a useful thing.

comment:4 Changed 9 years ago by bill

Milestone: 1.6future

(sadly) punting seemingly abandoned ticket and meta tickets to future

comment:5 Changed 8 years ago by Tom Trenka

Resolution: wontfix
Status: newclosed

Going to close as won't fix for the aforementioned reasons.

Note: See TracTickets for help on using tickets.