Bauble / bauble.classic

this is how Bauble and Ghini both started
GNU General Public License v2.0
10 stars 34 forks source link

object included in SearchView result should implement summary #258

Closed mfrasca closed 8 years ago

mfrasca commented 8 years ago

when we register a class in the SearchView.row_meta dictionary, we now pass as a parameter a (global) function that is used to represent the object of the registered class. this looks to me a bit of one biting one's own tail, I refer to the fact that this function should accept only one parameter and that it should be of the type of the class being described. the name of the function could be more indicative of the fact that these functions are meant to provide text to be shown, on two separate lines, in the same row of a SearchView. I propose removal of these functions and inclusion into the various classes, naming them something like search_view_markup_pair, not necessarily so but something like this, so the reader of the code has some idea of where the function will be used.