def make_generic_item(path_obj, **kwargs):
 return {'sort': kwargs.get('sort'), 'href': path_obj.get_absolute_url(), 'href_translate': path_obj.get_translate_url(), 'title': path_obj.name, 'code': path_obj.code, 'is_disabled': getattr(path_obj, 'disabled', False)}

def make_generic_item ( path_obj , ** kwargs ) : return { 'sort' : kwargs . get ( 'sort' ) , 'href' : path_obj . get_absolute_url ( ) , 'href_translate' : path_obj . get_translate_url ( ) , 'title' : path_obj . name , 'code' : path_obj . code , 'is_disabled' : getattr ( path_obj , 'disabled' , False ) }
template variables for each row in the table .