ox.API: raise if caller supplies both dict and kwargs #2822

Closed
opened 2015-07-27 12:57:38 +00:00 by wjt · 2 comments

I (incorrectly) wrote something like the following:

    api.find({'query': {...}}, keys=['id'], range=[0, n])

and the query was silently ignored, giving totally different results to what I wanted.

I (incorrectly) wrote something like the following: ``` api.find({'query': {...}}, keys=['id'], range=[0, n]) ``` and the query was silently ignored, giving totally different results to what I wanted.
j added the
python-ox
label 2015-07-27 12:57:38 +00:00
j added this to the 14.04 milestone 2015-07-27 12:57:38 +00:00
j self-assigned this 2015-07-27 12:57:38 +00:00
j added the
normal
enhancement
labels 2015-07-27 12:57:38 +00:00
Author

Attachment 0001-API-raise-if-caller-supplies-both-dict-and-kwargs.patch (897 bytes) added

**Attachment** 0001-API-raise-if-caller-supplies-both-dict-and-kwargs.patch (897 bytes) added
Owner

fixed in []changeset:python-ox,728

fixed in []changeset:python-ox,728
j added the
fixed
label 2015-08-02 14:00:17 +00:00
j closed this issue 2015-08-02 14:00:17 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: 0x2620/pandora#2822
No description provided.