def get_behaviors(brain_or_object):
obj = get_object(brain_or_object)<EOL>if not is_dexterity_content(obj):<EOL><INDENT>fail(<NUM_LIT>, "<STR_LIT>")<EOL><DEDENT>assignable = IBehaviorAssignable(obj, None)<EOL>if not assignable:<EOL><INDENT>return {}<EOL><DEDENT>out = {}<EOL>for behavior in assignable.enumerateBehaviors():<EOL><INDENT>for name, field in list(getFields(behavior.interface).items()):<EOL><INDENT>out[name] = field<EOL><DEDENT><DEDENT>return out<EOL>
Iterate over all behaviors that are assigned to the object

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