-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add utility method to retrieve Thumbnail url for an entity #3
Comments
I think it's an information we can add in Zou. |
@frankrousseau awesome. Maybe And it'd be perfect if it was possible to get the URL as opposed to just a download function, so that it's doable to download it in different ways, e.g. threaded. |
Yes, it sounds better to have this function in |
Issue
The ThumbnailBase label widget is relatively low level in that you have to pass it the required URL it needs to retrieve the thumbnail from using its load method.
Meaning getting a Thumbnail for a User is something like this:
The URL changes dependent on the type of entity you are working with making this slightly more involved, plus you'll need to know the URLs for the entities.
Approach
What if we would hide away these URLs and make it easily accessible through a
get_thumbnail_url
function.Here's a quick prototype that has some parts unfinished:
This way, if any of the URLs change on CG-Wire's API side we would only need to update this one function as opposed to all codebases using
qtazu
requiring to update the URLs in their code..The text was updated successfully, but these errors were encountered: