def deactivate_object(brain_or_object):
obj = get_object(brain_or_object)<EOL>if is_root(obj):<EOL><INDENT>fail(<NUM_LIT>, "<STR_LIT>")<EOL><DEDENT>try:<EOL><INDENT>do_transition_for(brain_or_object, "<STR_LIT>")<EOL><DEDENT>except Unauthorized:<EOL><INDENT>fail(<NUM_LIT>, "<STR_LIT>" % obj.getId())<EOL><DEDENT>
Deactivate the given object

    :param brain_or_object: A single catalog brain or content object
    :type brain_or_object: ATContentType/DexterityContentType/CatalogBrain
    :returns: Nothing
    :rtype: None