def get_object_by_record(record):
<EOL>if not record:<EOL><INDENT>return None<EOL><DEDENT>if record.get("<STR_LIT>"):<EOL><INDENT>return get_object_by_uid(record["<STR_LIT>"])<EOL><DEDENT>if record.get("<STR_LIT:path>"):<EOL><INDENT>return get_object_by_path(record["<STR_LIT:path>"])<EOL><DEDENT>if record.get("<STR_LIT>") and record.get("<STR_LIT:id>"):<EOL><INDENT>path = "<STR_LIT:/>".join([record["<STR_LIT>"], record["<STR_LIT:id>"]])<EOL>return get_object_by_path(path)<EOL><DEDENT>logger.warn("<STR_LIT>" % record)<EOL>return None<EOL>
Find an object by a given record

    Inspects request the record to locate an object

    :param record: A dictionary representation of an object
    :type record: dict
    :returns: Found Object or None
    :rtype: object