def _should_index(collection):
 rights = rights_manager.get_collection_rights(collection.id)
 return (rights.status != rights_manager.ACTIVITY_STATUS_PRIVATE)

def _should_index ( collection ) : rights = rights_manager . get_collection_rights ( collection . id ) return ( rights . status != rights_manager . ACTIVITY_STATUS_PRIVATE )
checks if a particular collection should be indexed .