{"action":"created","comment":{"url":"https://api.github.com/repos/OCA/openupgradelib/pulls/comments/36870665","id":36870665,"diff_hunk":"@@ -23,6 +23,7 @@\n import os\n import inspect\n import logging\n+import progressbar","path":"openupgradelib/openupgrade.py","position":4,"original_position":4,"commit_id":"2402b6c2c609ea56364a418922703f5d5a5dc2c7","original_commit_id":"3c4226e72a74fa21fa6d725b0b1211522a07a391","user":{"login":"bwrsandman","id":1013356,"avatar_url":"https://avatars.githubusercontent.com/u/1013356?v=3","gravatar_id":"","url":"https://api.github.com/users/bwrsandman","html_url":"https://github.com/bwrsandman","followers_url":"https://api.github.com/users/bwrsandman/followers","following_url":"https://api.github.com/users/bwrsandman/following{/other_user}","gists_url":"https://api.github.com/users/bwrsandman/gists{/gist_id}","starred_url":"https://api.github.com/users/bwrsandman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwrsandman/subscriptions","organizations_url":"https://api.github.com/users/bwrsandman/orgs","repos_url":"https://api.github.com/users/bwrsandman/repos","events_url":"https://api.github.com/users/bwrsandman/events{/privacy}","received_events_url":"https://api.github.com/users/bwrsandman/received_events","type":"User","site_admin":false},"body":"s/egg/python library/g","created_at":"2015-08-12T15:05:54Z","updated_at":"2015-08-12T15:05:54Z","html_url":"https://github.com/OCA/openupgradelib/pull/1#discussion_r36870665","pull_request_url":"https://api.github.com/repos/OCA/openupgradelib/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/OCA/openupgradelib/pulls/comments/36870665"},"html":{"href":"https://github.com/OCA/openupgradelib/pull/1#discussion_r36870665"},"pull_request":{"href":"https://api.github.com/repos/OCA/openupgradelib/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/OCA/openupgradelib/pulls/1","id":42150243,"html_url":"https://github.com/OCA/openupgradelib/pull/1","diff_url":"https://github.com/OCA/openupgradelib/pull/1.diff","patch_url":"https://github.com/OCA/openupgradelib/pull/1.patch","issue_url":"https://api.github.com/repos/OCA/openupgradelib/issues/1","number":1,"state":"open","locked":false,"title":"Better logging capabilities","user":{"login":"pedrobaeza","id":7165771,"avatar_url":"https://avatars.githubusercontent.com/u/7165771?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrobaeza","html_url":"https://github.com/pedrobaeza","followers_url":"https://api.github.com/users/pedrobaeza/followers","following_url":"https://api.github.com/users/pedrobaeza/following{/other_user}","gists_url":"https://api.github.com/users/pedrobaeza/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrobaeza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrobaeza/subscriptions","organizations_url":"https://api.github.com/users/pedrobaeza/orgs","repos_url":"https://api.github.com/users/pedrobaeza/repos","events_url":"https://api.github.com/users/pedrobaeza/events{/privacy}","received_events_url":"https://api.github.com/users/pedrobaeza/received_events","type":"User","site_admin":false},"body":"This PR adds 2 features:\r\n\r\n* log decorator, for putting on methods to automatically log a line when the method is called.\r\n* logged_progress method, to be called inside your scripts for showing a progress bar to know the advance of that part of the migration.\r\n\r\nWhen the transition to the lib will be completed, I will put some examples on OpenUpgrade.","created_at":"2015-08-11T16:39:27Z","updated_at":"2015-08-12T15:05:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"485c5fac68002bffe9380fd3ba1fe6ce6112f96c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OCA/openupgradelib/pulls/1/commits","review_comments_url":"https://api.github.com/repos/OCA/openupgradelib/pulls/1/comments","review_comment_url":"https://api.github.com/repos/OCA/openupgradelib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OCA/openupgradelib/issues/1/comments","statuses_url":"https://api.github.com/repos/OCA/openupgradelib/statuses/2402b6c2c609ea56364a418922703f5d5a5dc2c7","head":{"label":"pedrobaeza:better-logging","ref":"better-logging","sha":"2402b6c2c609ea56364a418922703f5d5a5dc2c7","user":{"login":"pedrobaeza","id":7165771,"avatar_url":"https://avatars.githubusercontent.com/u/7165771?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrobaeza","html_url":"https://github.com/pedrobaeza","followers_url":"https://api.github.com/users/pedrobaeza/followers","following_url":"https://api.github.com/users/pedrobaeza/following{/other_user}","gists_url":"https://api.github.com/users/pedrobaeza/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrobaeza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrobaeza/subscriptions","organizations_url":"https://api.github.com/users/pedrobaeza/orgs","repos_url":"https://api.github.com/users/pedrobaeza/repos","events_url":"https://api.github.com/users/pedrobaeza/events{/privacy}","received_events_url":"https://api.github.com/users/pedrobaeza/received_events","type":"User","site_admin":false},"repo":{"id":40553074,"name":"openupgradelib","full_name":"pedrobaeza/openupgradelib","owner":{"login":"pedrobaeza","id":7165771,"avatar_url":"https://avatars.githubusercontent.com/u/7165771?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrobaeza","html_url":"https://github.com/pedrobaeza","followers_url":"https://api.github.com/users/pedrobaeza/followers","following_url":"https://api.github.com/users/pedrobaeza/following{/other_user}","gists_url":"https://api.github.com/users/pedrobaeza/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrobaeza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrobaeza/subscriptions","organizations_url":"https://api.github.com/users/pedrobaeza/orgs","repos_url":"https://api.github.com/users/pedrobaeza/repos","events_url":"https://api.github.com/users/pedrobaeza/events{/privacy}","received_events_url":"https://api.github.com/users/pedrobaeza/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pedrobaeza/openupgradelib","description":"A library with support functions to be called from Odoo migration scripts.","fork":true,"url":"https://api.github.com/repos/pedrobaeza/openupgradelib","forks_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/forks","keys_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/teams","hooks_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/hooks","issue_events_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/issues/events{/number}","events_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/events","assignees_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/assignees{/user}","branches_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/branches{/branch}","tags_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/tags","blobs_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/git/refs{/sha}","trees_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/statuses/{sha}","languages_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/languages","stargazers_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/stargazers","contributors_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/contributors","subscribers_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/subscribers","subscription_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/subscription","commits_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/commits{/sha}","git_commits_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/git/commits{/sha}","comments_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/comments{/number}","issue_comment_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/issues/comments{/number}","contents_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/contents/{+path}","compare_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/merges","archive_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/downloads","issues_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/issues{/number}","pulls_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/pulls{/number}","milestones_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/milestones{/number}","notifications_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/labels{/name}","releases_url":"https://api.github.com/repos/pedrobaeza/openupgradelib/releases{/id}","created_at":"2015-08-11T16:35:39Z","updated_at":"2015-08-11T16:35:40Z","pushed_at":"2015-08-12T07:47:18Z","git_url":"git://github.com/pedrobaeza/openupgradelib.git","ssh_url":"git@github.com:pedrobaeza/openupgradelib.git","clone_url":"https://github.com/pedrobaeza/openupgradelib.git","svn_url":"https://github.com/pedrobaeza/openupgradelib","homepage":"","size":241,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"OCA:master","ref":"master","sha":"d1c83f979e6a21b24014f425a41947f2a0836f7b","user":{"login":"OCA","id":7600578,"avatar_url":"https://avatars.githubusercontent.com/u/7600578?v=3","gravatar_id":"","url":"https://api.github.com/users/OCA","html_url":"https://github.com/OCA","followers_url":"https://api.github.com/users/OCA/followers","following_url":"https://api.github.com/users/OCA/following{/other_user}","gists_url":"https://api.github.com/users/OCA/gists{/gist_id}","starred_url":"https://api.github.com/users/OCA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OCA/subscriptions","organizations_url":"https://api.github.com/users/OCA/orgs","repos_url":"https://api.github.com/users/OCA/repos","events_url":"https://api.github.com/users/OCA/events{/privacy}","received_events_url":"https://api.github.com/users/OCA/received_events","type":"Organization","site_admin":false},"repo":{"id":36870909,"name":"openupgradelib","full_name":"OCA/openupgradelib","owner":{"login":"OCA","id":7600578,"avatar_url":"https://avatars.githubusercontent.com/u/7600578?v=3","gravatar_id":"","url":"https://api.github.com/users/OCA","html_url":"https://github.com/OCA","followers_url":"https://api.github.com/users/OCA/followers","following_url":"https://api.github.com/users/OCA/following{/other_user}","gists_url":"https://api.github.com/users/OCA/gists{/gist_id}","starred_url":"https://api.github.com/users/OCA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OCA/subscriptions","organizations_url":"https://api.github.com/users/OCA/orgs","repos_url":"https://api.github.com/users/OCA/repos","events_url":"https://api.github.com/users/OCA/events{/privacy}","received_events_url":"https://api.github.com/users/OCA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OCA/openupgradelib","description":"A library with support functions to be called from Odoo migration scripts.","fork":false,"url":"https://api.github.com/repos/OCA/openupgradelib","forks_url":"https://api.github.com/repos/OCA/openupgradelib/forks","keys_url":"https://api.github.com/repos/OCA/openupgradelib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OCA/openupgradelib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OCA/openupgradelib/teams","hooks_url":"https://api.github.com/repos/OCA/openupgradelib/hooks","issue_events_url":"https://api.github.com/repos/OCA/openupgradelib/issues/events{/number}","events_url":"https://api.github.com/repos/OCA/openupgradelib/events","assignees_url":"https://api.github.com/repos/OCA/openupgradelib/assignees{/user}","branches_url":"https://api.github.com/repos/OCA/openupgradelib/branches{/branch}","tags_url":"https://api.github.com/repos/OCA/openupgradelib/tags","blobs_url":"https://api.github.com/repos/OCA/openupgradelib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OCA/openupgradelib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OCA/openupgradelib/git/refs{/sha}","trees_url":"https://api.github.com/repos/OCA/openupgradelib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OCA/openupgradelib/statuses/{sha}","languages_url":"https://api.github.com/repos/OCA/openupgradelib/languages","stargazers_url":"https://api.github.com/repos/OCA/openupgradelib/stargazers","contributors_url":"https://api.github.com/repos/OCA/openupgradelib/contributors","subscribers_url":"https://api.github.com/repos/OCA/openupgradelib/subscribers","subscription_url":"https://api.github.com/repos/OCA/openupgradelib/subscription","commits_url":"https://api.github.com/repos/OCA/openupgradelib/commits{/sha}","git_commits_url":"https://api.github.com/repos/OCA/openupgradelib/git/commits{/sha}","comments_url":"https://api.github.com/repos/OCA/openupgradelib/comments{/number}","issue_comment_url":"https://api.github.com/repos/OCA/openupgradelib/issues/comments{/number}","contents_url":"https://api.github.com/repos/OCA/openupgradelib/contents/{+path}","compare_url":"https://api.github.com/repos/OCA/openupgradelib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OCA/openupgradelib/merges","archive_url":"https://api.github.com/repos/OCA/openupgradelib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OCA/openupgradelib/downloads","issues_url":"https://api.github.com/repos/OCA/openupgradelib/issues{/number}","pulls_url":"https://api.github.com/repos/OCA/openupgradelib/pulls{/number}","milestones_url":"https://api.github.com/repos/OCA/openupgradelib/milestones{/number}","notifications_url":"https://api.github.com/repos/OCA/openupgradelib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OCA/openupgradelib/labels{/name}","releases_url":"https://api.github.com/repos/OCA/openupgradelib/releases{/id}","created_at":"2015-06-04T13:10:02Z","updated_at":"2015-06-23T17:05:05Z","pushed_at":"2015-08-12T07:48:32Z","git_url":"git://github.com/OCA/openupgradelib.git","ssh_url":"git@github.com:OCA/openupgradelib.git","clone_url":"https://github.com/OCA/openupgradelib.git","svn_url":"https://github.com/OCA/openupgradelib","homepage":"","size":397,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":4,"forks":4,"open_issues":4,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OCA/openupgradelib/pulls/1"},"html":{"href":"https://github.com/OCA/openupgradelib/pull/1"},"issue":{"href":"https://api.github.com/repos/OCA/openupgradelib/issues/1"},"comments":{"href":"https://api.github.com/repos/OCA/openupgradelib/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/OCA/openupgradelib/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/OCA/openupgradelib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OCA/openupgradelib/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/OCA/openupgradelib/statuses/2402b6c2c609ea56364a418922703f5d5a5dc2c7"}}}}