Re: [Back on]: [RFC] Adding sort parameter




On Wed, 02 Mar 2011 15:17:14 +0000, Lionel Landwerlin <lionel g landwerlin linux intel com> wrote:
One additional thing we should figure is what will happen when users try
to use the sorting interface passing keys that are not supported for
sorting by the source.

I think the core should check the keys passed by the user against the ones supported by the source and drop the ones that don't match (maybe
logging a warning or a debug message about it) before delagating the
work the plugin. This way we ensure that plugins only get keys they
support and do not have to check for this.

We could provide the user a "tool" function which take his sorting
parameters and the source to query/browse/search, and do the filtering on sorting parameters, that way the user can avoid warning messages from
the core and also be aware of dropped sorting keys (if he wants to
know).

Yeah, I guess we can add something like that too.

Iago


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]