{"action":"created","comment":{"url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/pulls/comments/64607663","id":64607663,"diff_hunk":"@@ -507,4 +534,43 @@ def get_status_color(cls, status_code):\n         return status_color\n \n \n+    @classmethod\n+    def field_is_editable(cls, sg_entity_type, field_name):\n+        \"\"\"\n+        Returns a boolean identifying the editability of the entity's field.\n+\n+        :param str sg_entity_type: the entity type\n+        :param str field_name: the field name to check editibility\n+\n+        :returns: ``True`` if the field is ediable, ``False`` otherwise.\n+        :rtype: :obj:`bool`\n+        \"\"\"\n+        self = cls.__get_instance()\n+        self._check_schema_refresh(sg_entity_type, field_name)\n+\n+        if sg_entity_type in self._type_schema and field_name in self._field_schema[sg_entity_type]:\n+            data = self._field_schema[sg_entity_type][field_name]\n+            return data.get(\"editable\", {}).get(\"value\", False)","path":"python/shotgun_globals/cached_schema.py","position":63,"original_position":63,"commit_id":"3acb927380485ef44208a2958e9a869e3f2e10fb","original_commit_id":"3acb927380485ef44208a2958e9a869e3f2e10fb","user":{"login":"josh-t","id":2604646,"avatar_url":"https://avatars.githubusercontent.com/u/2604646?v=3","gravatar_id":"","url":"https://api.github.com/users/josh-t","html_url":"https://github.com/josh-t","followers_url":"https://api.github.com/users/josh-t/followers","following_url":"https://api.github.com/users/josh-t/following{/other_user}","gists_url":"https://api.github.com/users/josh-t/gists{/gist_id}","starred_url":"https://api.github.com/users/josh-t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josh-t/subscriptions","organizations_url":"https://api.github.com/users/josh-t/orgs","repos_url":"https://api.github.com/users/josh-t/repos","events_url":"https://api.github.com/users/josh-t/events{/privacy}","received_events_url":"https://api.github.com/users/josh-t/received_events","type":"User","site_admin":false},"body":"I'm not sure. I'm fine switching this over to error out if not available.","created_at":"2016-05-25T16:39:03Z","updated_at":"2016-05-25T16:39:03Z","html_url":"https://github.com/shotgunsoftware/tk-framework-shotgunutils/pull/40#discussion_r64607663","pull_request_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/pulls/40","_links":{"self":{"href":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/pulls/comments/64607663"},"html":{"href":"https://github.com/shotgunsoftware/tk-framework-shotgunutils/pull/40#discussion_r64607663"},"pull_request":{"href":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/pulls/40"}}},"pull_request":{"url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/pulls/40","id":71407037,"html_url":"https://github.com/shotgunsoftware/tk-framework-shotgunutils/pull/40","diff_url":"https://github.com/shotgunsoftware/tk-framework-shotgunutils/pull/40.diff","patch_url":"https://github.com/shotgunsoftware/tk-framework-shotgunutils/pull/40.patch","issue_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/issues/40","number":40,"state":"open","locked":false,"title":"#34772 Adds utility methods to the cached schema API","user":{"login":"josh-t","id":2604646,"avatar_url":"https://avatars.githubusercontent.com/u/2604646?v=3","gravatar_id":"","url":"https://api.github.com/users/josh-t","html_url":"https://github.com/josh-t","followers_url":"https://api.github.com/users/josh-t/followers","following_url":"https://api.github.com/users/josh-t/following{/other_user}","gists_url":"https://api.github.com/users/josh-t/gists{/gist_id}","starred_url":"https://api.github.com/users/josh-t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josh-t/subscriptions","organizations_url":"https://api.github.com/users/josh-t/orgs","repos_url":"https://api.github.com/users/josh-t/repos","events_url":"https://api.github.com/users/josh-t/events{/privacy}","received_events_url":"https://api.github.com/users/josh-t/received_events","type":"User","site_admin":false},"body":"Utility methods added primarily for use with the qtwidget's shotgun_fields.","created_at":"2016-05-25T14:58:59Z","updated_at":"2016-05-25T16:39:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/pulls/40/commits","review_comments_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/pulls/40/comments","review_comment_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/issues/40/comments","statuses_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/statuses/3acb927380485ef44208a2958e9a869e3f2e10fb","head":{"label":"shotgunsoftware:34772_editor_widgets","ref":"34772_editor_widgets","sha":"3acb927380485ef44208a2958e9a869e3f2e10fb","user":{"login":"shotgunsoftware","id":317894,"avatar_url":"https://avatars.githubusercontent.com/u/317894?v=3","gravatar_id":"","url":"https://api.github.com/users/shotgunsoftware","html_url":"https://github.com/shotgunsoftware","followers_url":"https://api.github.com/users/shotgunsoftware/followers","following_url":"https://api.github.com/users/shotgunsoftware/following{/other_user}","gists_url":"https://api.github.com/users/shotgunsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/shotgunsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shotgunsoftware/subscriptions","organizations_url":"https://api.github.com/users/shotgunsoftware/orgs","repos_url":"https://api.github.com/users/shotgunsoftware/repos","events_url":"https://api.github.com/users/shotgunsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/shotgunsoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":14639855,"name":"tk-framework-shotgunutils","full_name":"shotgunsoftware/tk-framework-shotgunutils","owner":{"login":"shotgunsoftware","id":317894,"avatar_url":"https://avatars.githubusercontent.com/u/317894?v=3","gravatar_id":"","url":"https://api.github.com/users/shotgunsoftware","html_url":"https://github.com/shotgunsoftware","followers_url":"https://api.github.com/users/shotgunsoftware/followers","following_url":"https://api.github.com/users/shotgunsoftware/following{/other_user}","gists_url":"https://api.github.com/users/shotgunsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/shotgunsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shotgunsoftware/subscriptions","organizations_url":"https://api.github.com/users/shotgunsoftware/orgs","repos_url":"https://api.github.com/users/shotgunsoftware/repos","events_url":"https://api.github.com/users/shotgunsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/shotgunsoftware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/shotgunsoftware/tk-framework-shotgunutils","description":"Shotgun Related Utilities","fork":false,"url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils","forks_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/forks","keys_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/teams","hooks_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/hooks","issue_events_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/issues/events{/number}","events_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/events","assignees_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/assignees{/user}","branches_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/branches{/branch}","tags_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/tags","blobs_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/git/refs{/sha}","trees_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/statuses/{sha}","languages_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/languages","stargazers_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/stargazers","contributors_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/contributors","subscribers_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/subscribers","subscription_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/subscription","commits_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/commits{/sha}","git_commits_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/git/commits{/sha}","comments_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/comments{/number}","issue_comment_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/issues/comments{/number}","contents_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/contents/{+path}","compare_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/merges","archive_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/downloads","issues_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/issues{/number}","pulls_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/pulls{/number}","milestones_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/milestones{/number}","notifications_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/labels{/name}","releases_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/releases{/id}","deployments_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/deployments","created_at":"2013-11-23T09:36:59Z","updated_at":"2016-01-15T13:45:19Z","pushed_at":"2016-05-25T15:32:20Z","git_url":"git://github.com/shotgunsoftware/tk-framework-shotgunutils.git","ssh_url":"git@github.com:shotgunsoftware/tk-framework-shotgunutils.git","clone_url":"https://github.com/shotgunsoftware/tk-framework-shotgunutils.git","svn_url":"https://github.com/shotgunsoftware/tk-framework-shotgunutils","homepage":"http://developer.shotgunsoftware.com/tk-framework-shotgunutils","size":8781,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":7,"mirror_url":null,"open_issues_count":5,"forks":7,"open_issues":5,"watchers":3,"default_branch":"master"}},"base":{"label":"shotgunsoftware:master","ref":"master","sha":"0a045b22661f7cdde0f634e118982875fb9a421d","user":{"login":"shotgunsoftware","id":317894,"avatar_url":"https://avatars.githubusercontent.com/u/317894?v=3","gravatar_id":"","url":"https://api.github.com/users/shotgunsoftware","html_url":"https://github.com/shotgunsoftware","followers_url":"https://api.github.com/users/shotgunsoftware/followers","following_url":"https://api.github.com/users/shotgunsoftware/following{/other_user}","gists_url":"https://api.github.com/users/shotgunsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/shotgunsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shotgunsoftware/subscriptions","organizations_url":"https://api.github.com/users/shotgunsoftware/orgs","repos_url":"https://api.github.com/users/shotgunsoftware/repos","events_url":"https://api.github.com/users/shotgunsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/shotgunsoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":14639855,"name":"tk-framework-shotgunutils","full_name":"shotgunsoftware/tk-framework-shotgunutils","owner":{"login":"shotgunsoftware","id":317894,"avatar_url":"https://avatars.githubusercontent.com/u/317894?v=3","gravatar_id":"","url":"https://api.github.com/users/shotgunsoftware","html_url":"https://github.com/shotgunsoftware","followers_url":"https://api.github.com/users/shotgunsoftware/followers","following_url":"https://api.github.com/users/shotgunsoftware/following{/other_user}","gists_url":"https://api.github.com/users/shotgunsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/shotgunsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shotgunsoftware/subscriptions","organizations_url":"https://api.github.com/users/shotgunsoftware/orgs","repos_url":"https://api.github.com/users/shotgunsoftware/repos","events_url":"https://api.github.com/users/shotgunsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/shotgunsoftware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/shotgunsoftware/tk-framework-shotgunutils","description":"Shotgun Related Utilities","fork":false,"url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils","forks_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/forks","keys_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/teams","hooks_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/hooks","issue_events_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/issues/events{/number}","events_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/events","assignees_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/assignees{/user}","branches_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/branches{/branch}","tags_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/tags","blobs_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/git/refs{/sha}","trees_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/statuses/{sha}","languages_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/languages","stargazers_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/stargazers","contributors_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/contributors","subscribers_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/subscribers","subscription_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/subscription","commits_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/commits{/sha}","git_commits_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/git/commits{/sha}","comments_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/comments{/number}","issue_comment_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/issues/comments{/number}","contents_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/contents/{+path}","compare_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/merges","archive_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/downloads","issues_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/issues{/number}","pulls_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/pulls{/number}","milestones_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/milestones{/number}","notifications_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/labels{/name}","releases_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/releases{/id}","deployments_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/deployments","created_at":"2013-11-23T09:36:59Z","updated_at":"2016-01-15T13:45:19Z","pushed_at":"2016-05-25T15:32:20Z","git_url":"git://github.com/shotgunsoftware/tk-framework-shotgunutils.git","ssh_url":"git@github.com:shotgunsoftware/tk-framework-shotgunutils.git","clone_url":"https://github.com/shotgunsoftware/tk-framework-shotgunutils.git","svn_url":"https://github.com/shotgunsoftware/tk-framework-shotgunutils","homepage":"http://developer.shotgunsoftware.com/tk-framework-shotgunutils","size":8781,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":7,"mirror_url":null,"open_issues_count":5,"forks":7,"open_issues":5,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/pulls/40"},"html":{"href":"https://github.com/shotgunsoftware/tk-framework-shotgunutils/pull/40"},"issue":{"href":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/issues/40"},"comments":{"href":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/pulls/40/comments"},"review_comment":{"href":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/pulls/40/commits"},"statuses":{"href":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/statuses/3acb927380485ef44208a2958e9a869e3f2e10fb"}}}}
{"actor":{"display_login":"josh-t"}}