Skip to content

v3.0.17

Compare
Choose a tag to compare
@kporangehat kporangehat released this 10 Jul 05:26
· 299 commits to master since this release

update_project_last_accessed()

This function will update the Project.last_accessed_by_current_user value. This is an internal field which is calculated by finding the last PageHit created by a user for a particular Project. So this new function acts as a convenience method for updating the value with a "ping". We added this function primarily for future Toolkit ​functionality, but you're welcome to use it as needed. Documentation for update_project_last_accessed()

Additional info in user-agent string​

​We've added the Python version and platform to the user-agent string that is sent with API requests.

Old user-agent string: shotgun-json (3.0.17)
New user-agent string: shotgun-json (3.0.17); Python 2.6 (Mac)​

​_Note that Toolkit adds additional info to the user-agent string including version info for apps and engines. This hasn't changed but is now appended to the new default user-agent string._

Fix for Windows Python 2.7 mimetypes bug

​There are certain installers on Windows that will (incorrectly) add non-Latin characters to the registry. This usually only happens if you are located in an area where unicode characters are more widely required. The mimetypes library in Python 2.7 ​chokes on these non-Latin characters causing a UnicodeDecodeError. To work around this error, we have bundled a patched version of the mimetypes library and fall back on that if we encounter this issue during runtime.

More info about the Python bug can be found at http://bugs.python.org/issue9291