cardapio should pass requested result count to plugins
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cardapio |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
instead of the long_search flag it should probably provide an int with the current item count (let's call it 'result_count').
this would reduce code duplication. no more:
"# take the maximum number of results into account
self.results_limit = self.cardapio.
self.long_
in every plugin initialization. also no more:
"website_
in every search. instead we'd have:
"website_
from the user's view, it would allow to change the result count between searches (without restarting Cardapio if, of course, Cardapio's not caching the settings itself).
if you agree I could send a patch including a patch for each currently existing plugin.
Changed in cardapio: | |
status: | New → Fix Released |
Approved :)
If you post a patch here I will incorporate it. Right now I'm just too busy to do it myself. (Next week I'll be back to my normal workload)