{"action":"created","comment":{"url":"https://api.github.com/repos/mezuro/kalibro_client_py/pulls/comments/34571380","id":34571380,"diff_hunk":"@@ -46,6 +45,28 @@ def save(self):\n         else:\n             raise KalibroClientSaveError(response['errors'])\n \n+    @classmethod\n+    def _is_valid_field(cls, name):\n+        return name in cls._fields\n+\n+    def update(self, **kwargs):\n+        if not self.id:\n+            raise KalibroClientSaveError()","path":"kalibro_client/base.py","position":24,"original_position":24,"commit_id":"9a2523ebc6214dacf519640451ceadc4fb56b41b","original_commit_id":"9a2523ebc6214dacf519640451ceadc4fb56b41b","user":{"login":"rafamanzo","id":288884,"avatar_url":"https://avatars.githubusercontent.com/u/288884?v=3","gravatar_id":"","url":"https://api.github.com/users/rafamanzo","html_url":"https://github.com/rafamanzo","followers_url":"https://api.github.com/users/rafamanzo/followers","following_url":"https://api.github.com/users/rafamanzo/following{/other_user}","gists_url":"https://api.github.com/users/rafamanzo/gists{/gist_id}","starred_url":"https://api.github.com/users/rafamanzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafamanzo/subscriptions","organizations_url":"https://api.github.com/users/rafamanzo/orgs","repos_url":"https://api.github.com/users/rafamanzo/repos","events_url":"https://api.github.com/users/rafamanzo/events{/privacy}","received_events_url":"https://api.github.com/users/rafamanzo/received_events","type":"User","site_admin":false},"body":"Wouldn't be nice to add a message here?","created_at":"2015-07-14T14:10:33Z","updated_at":"2015-07-14T14:10:33Z","html_url":"https://github.com/mezuro/kalibro_client_py/pull/1#discussion_r34571380","pull_request_url":"https://api.github.com/repos/mezuro/kalibro_client_py/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/mezuro/kalibro_client_py/pulls/comments/34571380"},"html":{"href":"https://github.com/mezuro/kalibro_client_py/pull/1#discussion_r34571380"},"pull_request":{"href":"https://api.github.com/repos/mezuro/kalibro_client_py/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/mezuro/kalibro_client_py/pulls/1","id":39918741,"html_url":"https://github.com/mezuro/kalibro_client_py/pull/1","diff_url":"https://github.com/mezuro/kalibro_client_py/pull/1.diff","patch_url":"https://github.com/mezuro/kalibro_client_py/pull/1.patch","issue_url":"https://api.github.com/repos/mezuro/kalibro_client_py/issues/1","number":1,"state":"open","locked":false,"title":"Update implementation","user":{"login":"diegoamc","id":1068750,"avatar_url":"https://avatars.githubusercontent.com/u/1068750?v=3","gravatar_id":"","url":"https://api.github.com/users/diegoamc","html_url":"https://github.com/diegoamc","followers_url":"https://api.github.com/users/diegoamc/followers","following_url":"https://api.github.com/users/diegoamc/following{/other_user}","gists_url":"https://api.github.com/users/diegoamc/gists{/gist_id}","starred_url":"https://api.github.com/users/diegoamc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegoamc/subscriptions","organizations_url":"https://api.github.com/users/diegoamc/orgs","repos_url":"https://api.github.com/users/diegoamc/repos","events_url":"https://api.github.com/users/diegoamc/events{/privacy}","received_events_url":"https://api.github.com/users/diegoamc/received_events","type":"User","site_admin":false},"body":"Implemented update method in Base ","created_at":"2015-07-14T14:03:23Z","updated_at":"2015-07-14T14:10:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"537e9ec5b6b40647d8e73c68114161b3f02eb565","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mezuro/kalibro_client_py/pulls/1/commits","review_comments_url":"https://api.github.com/repos/mezuro/kalibro_client_py/pulls/1/comments","review_comment_url":"https://api.github.com/repos/mezuro/kalibro_client_py/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mezuro/kalibro_client_py/issues/1/comments","statuses_url":"https://api.github.com/repos/mezuro/kalibro_client_py/statuses/9a2523ebc6214dacf519640451ceadc4fb56b41b","head":{"label":"mezuro:update_implementation","ref":"update_implementation","sha":"9a2523ebc6214dacf519640451ceadc4fb56b41b","user":{"login":"mezuro","id":4100201,"avatar_url":"https://avatars.githubusercontent.com/u/4100201?v=3","gravatar_id":"","url":"https://api.github.com/users/mezuro","html_url":"https://github.com/mezuro","followers_url":"https://api.github.com/users/mezuro/followers","following_url":"https://api.github.com/users/mezuro/following{/other_user}","gists_url":"https://api.github.com/users/mezuro/gists{/gist_id}","starred_url":"https://api.github.com/users/mezuro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mezuro/subscriptions","organizations_url":"https://api.github.com/users/mezuro/orgs","repos_url":"https://api.github.com/users/mezuro/repos","events_url":"https://api.github.com/users/mezuro/events{/privacy}","received_events_url":"https://api.github.com/users/mezuro/received_events","type":"Organization","site_admin":false},"repo":{"id":38386084,"name":"kalibro_client_py","full_name":"mezuro/kalibro_client_py","owner":{"login":"mezuro","id":4100201,"avatar_url":"https://avatars.githubusercontent.com/u/4100201?v=3","gravatar_id":"","url":"https://api.github.com/users/mezuro","html_url":"https://github.com/mezuro","followers_url":"https://api.github.com/users/mezuro/followers","following_url":"https://api.github.com/users/mezuro/following{/other_user}","gists_url":"https://api.github.com/users/mezuro/gists{/gist_id}","starred_url":"https://api.github.com/users/mezuro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mezuro/subscriptions","organizations_url":"https://api.github.com/users/mezuro/orgs","repos_url":"https://api.github.com/users/mezuro/repos","events_url":"https://api.github.com/users/mezuro/events{/privacy}","received_events_url":"https://api.github.com/users/mezuro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mezuro/kalibro_client_py","description":"","fork":false,"url":"https://api.github.com/repos/mezuro/kalibro_client_py","forks_url":"https://api.github.com/repos/mezuro/kalibro_client_py/forks","keys_url":"https://api.github.com/repos/mezuro/kalibro_client_py/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mezuro/kalibro_client_py/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mezuro/kalibro_client_py/teams","hooks_url":"https://api.github.com/repos/mezuro/kalibro_client_py/hooks","issue_events_url":"https://api.github.com/repos/mezuro/kalibro_client_py/issues/events{/number}","events_url":"https://api.github.com/repos/mezuro/kalibro_client_py/events","assignees_url":"https://api.github.com/repos/mezuro/kalibro_client_py/assignees{/user}","branches_url":"https://api.github.com/repos/mezuro/kalibro_client_py/branches{/branch}","tags_url":"https://api.github.com/repos/mezuro/kalibro_client_py/tags","blobs_url":"https://api.github.com/repos/mezuro/kalibro_client_py/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mezuro/kalibro_client_py/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mezuro/kalibro_client_py/git/refs{/sha}","trees_url":"https://api.github.com/repos/mezuro/kalibro_client_py/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mezuro/kalibro_client_py/statuses/{sha}","languages_url":"https://api.github.com/repos/mezuro/kalibro_client_py/languages","stargazers_url":"https://api.github.com/repos/mezuro/kalibro_client_py/stargazers","contributors_url":"https://api.github.com/repos/mezuro/kalibro_client_py/contributors","subscribers_url":"https://api.github.com/repos/mezuro/kalibro_client_py/subscribers","subscription_url":"https://api.github.com/repos/mezuro/kalibro_client_py/subscription","commits_url":"https://api.github.com/repos/mezuro/kalibro_client_py/commits{/sha}","git_commits_url":"https://api.github.com/repos/mezuro/kalibro_client_py/git/commits{/sha}","comments_url":"https://api.github.com/repos/mezuro/kalibro_client_py/comments{/number}","issue_comment_url":"https://api.github.com/repos/mezuro/kalibro_client_py/issues/comments{/number}","contents_url":"https://api.github.com/repos/mezuro/kalibro_client_py/contents/{+path}","compare_url":"https://api.github.com/repos/mezuro/kalibro_client_py/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mezuro/kalibro_client_py/merges","archive_url":"https://api.github.com/repos/mezuro/kalibro_client_py/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mezuro/kalibro_client_py/downloads","issues_url":"https://api.github.com/repos/mezuro/kalibro_client_py/issues{/number}","pulls_url":"https://api.github.com/repos/mezuro/kalibro_client_py/pulls{/number}","milestones_url":"https://api.github.com/repos/mezuro/kalibro_client_py/milestones{/number}","notifications_url":"https://api.github.com/repos/mezuro/kalibro_client_py/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mezuro/kalibro_client_py/labels{/name}","releases_url":"https://api.github.com/repos/mezuro/kalibro_client_py/releases{/id}","created_at":"2015-07-01T17:52:40Z","updated_at":"2015-07-01T17:56:21Z","pushed_at":"2015-07-14T14:04:40Z","git_url":"git://github.com/mezuro/kalibro_client_py.git","ssh_url":"git@github.com:mezuro/kalibro_client_py.git","clone_url":"https://github.com/mezuro/kalibro_client_py.git","svn_url":"https://github.com/mezuro/kalibro_client_py","homepage":null,"size":188,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"mezuro:master","ref":"master","sha":"b16ab1cf813d5211f4dda5e0695ea534961d2e42","user":{"login":"mezuro","id":4100201,"avatar_url":"https://avatars.githubusercontent.com/u/4100201?v=3","gravatar_id":"","url":"https://api.github.com/users/mezuro","html_url":"https://github.com/mezuro","followers_url":"https://api.github.com/users/mezuro/followers","following_url":"https://api.github.com/users/mezuro/following{/other_user}","gists_url":"https://api.github.com/users/mezuro/gists{/gist_id}","starred_url":"https://api.github.com/users/mezuro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mezuro/subscriptions","organizations_url":"https://api.github.com/users/mezuro/orgs","repos_url":"https://api.github.com/users/mezuro/repos","events_url":"https://api.github.com/users/mezuro/events{/privacy}","received_events_url":"https://api.github.com/users/mezuro/received_events","type":"Organization","site_admin":false},"repo":{"id":38386084,"name":"kalibro_client_py","full_name":"mezuro/kalibro_client_py","owner":{"login":"mezuro","id":4100201,"avatar_url":"https://avatars.githubusercontent.com/u/4100201?v=3","gravatar_id":"","url":"https://api.github.com/users/mezuro","html_url":"https://github.com/mezuro","followers_url":"https://api.github.com/users/mezuro/followers","following_url":"https://api.github.com/users/mezuro/following{/other_user}","gists_url":"https://api.github.com/users/mezuro/gists{/gist_id}","starred_url":"https://api.github.com/users/mezuro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mezuro/subscriptions","organizations_url":"https://api.github.com/users/mezuro/orgs","repos_url":"https://api.github.com/users/mezuro/repos","events_url":"https://api.github.com/users/mezuro/events{/privacy}","received_events_url":"https://api.github.com/users/mezuro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mezuro/kalibro_client_py","description":"","fork":false,"url":"https://api.github.com/repos/mezuro/kalibro_client_py","forks_url":"https://api.github.com/repos/mezuro/kalibro_client_py/forks","keys_url":"https://api.github.com/repos/mezuro/kalibro_client_py/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mezuro/kalibro_client_py/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mezuro/kalibro_client_py/teams","hooks_url":"https://api.github.com/repos/mezuro/kalibro_client_py/hooks","issue_events_url":"https://api.github.com/repos/mezuro/kalibro_client_py/issues/events{/number}","events_url":"https://api.github.com/repos/mezuro/kalibro_client_py/events","assignees_url":"https://api.github.com/repos/mezuro/kalibro_client_py/assignees{/user}","branches_url":"https://api.github.com/repos/mezuro/kalibro_client_py/branches{/branch}","tags_url":"https://api.github.com/repos/mezuro/kalibro_client_py/tags","blobs_url":"https://api.github.com/repos/mezuro/kalibro_client_py/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mezuro/kalibro_client_py/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mezuro/kalibro_client_py/git/refs{/sha}","trees_url":"https://api.github.com/repos/mezuro/kalibro_client_py/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mezuro/kalibro_client_py/statuses/{sha}","languages_url":"https://api.github.com/repos/mezuro/kalibro_client_py/languages","stargazers_url":"https://api.github.com/repos/mezuro/kalibro_client_py/stargazers","contributors_url":"https://api.github.com/repos/mezuro/kalibro_client_py/contributors","subscribers_url":"https://api.github.com/repos/mezuro/kalibro_client_py/subscribers","subscription_url":"https://api.github.com/repos/mezuro/kalibro_client_py/subscription","commits_url":"https://api.github.com/repos/mezuro/kalibro_client_py/commits{/sha}","git_commits_url":"https://api.github.com/repos/mezuro/kalibro_client_py/git/commits{/sha}","comments_url":"https://api.github.com/repos/mezuro/kalibro_client_py/comments{/number}","issue_comment_url":"https://api.github.com/repos/mezuro/kalibro_client_py/issues/comments{/number}","contents_url":"https://api.github.com/repos/mezuro/kalibro_client_py/contents/{+path}","compare_url":"https://api.github.com/repos/mezuro/kalibro_client_py/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mezuro/kalibro_client_py/merges","archive_url":"https://api.github.com/repos/mezuro/kalibro_client_py/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mezuro/kalibro_client_py/downloads","issues_url":"https://api.github.com/repos/mezuro/kalibro_client_py/issues{/number}","pulls_url":"https://api.github.com/repos/mezuro/kalibro_client_py/pulls{/number}","milestones_url":"https://api.github.com/repos/mezuro/kalibro_client_py/milestones{/number}","notifications_url":"https://api.github.com/repos/mezuro/kalibro_client_py/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mezuro/kalibro_client_py/labels{/name}","releases_url":"https://api.github.com/repos/mezuro/kalibro_client_py/releases{/id}","created_at":"2015-07-01T17:52:40Z","updated_at":"2015-07-01T17:56:21Z","pushed_at":"2015-07-14T14:04:40Z","git_url":"git://github.com/mezuro/kalibro_client_py.git","ssh_url":"git@github.com:mezuro/kalibro_client_py.git","clone_url":"https://github.com/mezuro/kalibro_client_py.git","svn_url":"https://github.com/mezuro/kalibro_client_py","homepage":null,"size":188,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mezuro/kalibro_client_py/pulls/1"},"html":{"href":"https://github.com/mezuro/kalibro_client_py/pull/1"},"issue":{"href":"https://api.github.com/repos/mezuro/kalibro_client_py/issues/1"},"comments":{"href":"https://api.github.com/repos/mezuro/kalibro_client_py/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/mezuro/kalibro_client_py/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/mezuro/kalibro_client_py/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mezuro/kalibro_client_py/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/mezuro/kalibro_client_py/statuses/9a2523ebc6214dacf519640451ceadc4fb56b41b"}}}}