def get_discussion_id_map_entry(xblock):
 return (xblock.discussion_id, {'location': xblock.location, 'title': ((xblock.discussion_category.split('/')[(-1)].strip() + ' / ') + xblock.discussion_target)})

def get_discussion_id_map_entry ( xblock ) : return ( xblock . discussion_id , { 'location' : xblock . location , 'title' : ( ( xblock . discussion_category . split ( '/' ) [ ( - 1 ) ] . strip ( ) + ' / ' ) + xblock . discussion_target ) } )
returns a tuple of suitable for inclusion in the results of get_discussion_id_map() .