shotgunsoftware/python-api — Issue #8: Bug in _parse_records where it won't get a URL for a linked image field
Author: HughMacdonald
Created: 2011-12-19 00:34:44+00:00
State: open

Hi,

This is something I came across a while back, and just came across something similar in the GUI, so thought I'd report it.

When requesting a linked entity's image field, it won't convert the result to a URL

For example, if I want to get a Shot's details, and the linked Project's image at the same time, I feel that I should be able to do:

sg.find_one("Shot", [["id", "is", 2418]], fields = ["code", "image", "project.Project.image"])

This currently gives a result of:

{'image': 'https://protected/url/to/thumbnail.jpg', 'type': 'Shot', 'id': 2418, 'project.Project.image': 6867}

Rather than turning the Project's image into a URL