def get_schema(brain_or_object):
obj = get_object(brain_or_object)<EOL>if is_root(obj):<EOL><INDENT>return None<EOL><DEDENT>if is_dexterity_content(obj):<EOL><INDENT>pt = get_tool("<STR_LIT>")<EOL>fti = pt.getTypeInfo(obj.portal_type)<EOL>return fti.lookupSchema()<EOL><DEDENT>if is_at_content(obj):<EOL><INDENT>return obj.Schema()<EOL><DEDENT>fail(<NUM_LIT>, "<STR_LIT>".format(repr(brain_or_object)))<EOL>
Get the schema of the content

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