def get_fields(brain_or_object):
obj = get_object(brain_or_object)<EOL>if is_root(obj):<EOL><INDENT>return {}<EOL><DEDENT>schema = get_schema(obj)<EOL>if is_dexterity_content(obj):<EOL><INDENT>names = schema.names()<EOL>fields = [schema.get(name) for name in names]<EOL>schema_fields = dict(list(zip(names, fields)))<EOL>schema_fields.update(get_behaviors(obj))<EOL>return schema_fields<EOL><DEDENT>return dict(list(zip(list(schema.keys()), schema.fields())))<EOL>
Get the list of fields from the object

    :param brain_or_object: A single catalog brain or content object
    :type brain_or_object: ATContentType/DexterityContentType/CatalogBrain
    :returns: List of fields
    :rtype: list