def _get_search_rank(collection_id):
 rights = rights_manager.get_collection_rights(collection_id)
 rank = (_DEFAULT_RANK + (_STATUS_PUBLICIZED_BONUS if (rights.status == rights_manager.ACTIVITY_STATUS_PUBLICIZED) else 0))
 return max(rank, 0)

def _get_search_rank ( collection_id ) : rights = rights_manager . get_collection_rights ( collection_id ) rank = ( _DEFAULT_RANK + ( _STATUS_PUBLICIZED_BONUS if ( rights . status == rights_manager . ACTIVITY_STATUS_PUBLICIZED ) else 0 ) ) return max ( rank , 0 )
gets the search rank of a given collection .