def get_cancellation_status(brain_or_object, default="active"):
    """Get the `cancellation_state` of an object

    :param brain_or_object: A single catalog brain or content object
    :type brain_or_object: ATContentType/DexterityContentType/CatalogBrain
    :returns: Value of the review_status variable
    :rtype: String
    """
    if is_brain(brain_or_object):
        return getattr(brain_or_object, "cancellation_state", default)
    workflows = get_workflows_for(brain_or_object)
    if 'bika_cancellation_workflow' not in workflows:
        return default
    return get_workflow_status_of(brain_or_object, 'cancellation_state')
Get the `cancellation_state` of an object

    :param brain_or_object: A single catalog brain or content object
    :type brain_or_object: ATContentType/DexterityContentType/CatalogBrain
    :returns: Value of the review_status variable
    :rtype: String