2014-06-12 12:38 GMT+02:00 Cédric Krier <[email protected]>:
> On 12 Jun 12:29, Mathias Behrle wrote:
>> * Cédric Krier: " Re: [tryton-dev] What should be the search on: 1..42" (Thu,
>>   12 Jun 2014 12:11:13 +0200):
>>
>> > On 12 Jun 11:59, Mathias Behrle wrote:
>> > > * Cédric Krier: " [tryton-dev] What should be the search on: 1..42" 
>> > > (Thu, 12
>> > >   Jun 2014 11:06:34 +0200):
>> > >
>> > > > Hi,
>> > > >
>> > > > We get some astonishement with the current behavior of the client with
>> > > > the range search syntax.
>> > > >
>> > > > Currently: `Field: 1..42` will become
>> > > >
>> > > >     `[('field', '>=', 1), ('field', '<', 42)]`
>> > > >
>> > > > But it seems people expect:
>> > > >
>> > > >     `[('field', '>=', 1), ('field', '<=', 42)]`
>> > > >
>> > > > One point about the current behavior is that you can slide the range by
>> > > > the length and it will not contain any duplication.
>> > > >
>> > > > So what do you think?
>> > >
>> > > From a user perspective the search imitates 'from 1 to 42', which 
>> > > includes
>> > > 42 in the selection.
>> >
>> > What is the original of 'from 1 to 42'?
>>
>> Sorry, I don't understand the question.
>
> You say that the search imitates something which has a specific
> behavior. But where does it come from?

I think it comes from these two facts:
- When speaking, we always say "values between 1 and 42" and in this
case everybody understands that both numbers are included.
- It's easier to search. For example if you search all account moves
of march, you think of the first to 31th of march. Using "<" and ">"
means the user has to think of 28th february and 1st of april.

>
>
> --
> Cédric Krier - B2CK SPRL
> Email/Jabber: [email protected]
> Tel: +32 472 54 46 59
> Website: http://www.b2ck.com/



-- 
Albert Cervera i Areny
Tel. 93 553 18 03
@albertnan
www.NaN-tic.com

Reply via email to