{"action":"created","comment":{"url":"https://api.github.com/repos/OCA/website/pulls/comments/81738127","pull_request_review_id":2694784,"id":81738127,"diff_hunk":"@@ -0,0 +1,221 @@\n+# -*- coding: utf-8 -*-#\n+# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).\n+\n+import datetime\n+from openerp import http\n+from openerp.http import request\n+from openerp.addons.website.controllers.main import Website\n+from openerp.tools.misc import DEFAULT_SERVER_DATETIME_FORMAT\n+\n+GOOGLE_ANALYTICS_CONFIGURED = 2\n+GOOGLE_ANALYTICS_PARTIALLY_CONFIGURED = 1\n+GOOGLE_ANALYTICS_NOT_CONFIGURED = 0\n+\n+\n+class VersioningController(Website):\n+\n+    @http.route('/website_version_ce/change_version', type='json', auth=\"user\",","path":"website_version_ce/controllers/main.py","position":17,"original_position":17,"commit_id":"6c3d87fe2dd38ef6408e7a946f29e1d0f1881d5a","original_commit_id":"6c3d87fe2dd38ef6408e7a946f29e1d0f1881d5a","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":"Well, _website_version_oca_ is also not the best name, as is not a version developed by OCA people, but only the Odoo's one that is open source. So I think the suffix `_ce` is appropiated.","created_at":"2016-10-04T11:45:25Z","updated_at":"2016-10-04T11:45:25Z","html_url":"https://github.com/OCA/website/pull/242#discussion_r81738127","pull_request_url":"https://api.github.com/repos/OCA/website/pulls/242","_links":{"self":{"href":"https://api.github.com/repos/OCA/website/pulls/comments/81738127"},"html":{"href":"https://github.com/OCA/website/pull/242#discussion_r81738127"},"pull_request":{"href":"https://api.github.com/repos/OCA/website/pulls/242"}}},"pull_request":{"url":"https://api.github.com/repos/OCA/website/pulls/242","id":81117474,"html_url":"https://github.com/OCA/website/pull/242","diff_url":"https://github.com/OCA/website/pull/242.diff","patch_url":"https://github.com/OCA/website/pull/242.patch","issue_url":"https://api.github.com/repos/OCA/website/issues/242","number":242,"state":"open","locked":false,"title":"[ADD][9.0] website_version","user":{"login":"nicolas-petit","id":13420156,"avatar_url":"https://avatars.githubusercontent.com/u/13420156?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolas-petit","html_url":"https://github.com/nicolas-petit","followers_url":"https://api.github.com/users/nicolas-petit/followers","following_url":"https://api.github.com/users/nicolas-petit/following{/other_user}","gists_url":"https://api.github.com/users/nicolas-petit/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolas-petit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolas-petit/subscriptions","organizations_url":"https://api.github.com/users/nicolas-petit/orgs","repos_url":"https://api.github.com/users/nicolas-petit/repos","events_url":"https://api.github.com/users/nicolas-petit/events{/privacy}","received_events_url":"https://api.github.com/users/nicolas-petit/received_events","type":"User","site_admin":false},"body":"Added base code from Odoo S.A.\r\n\r\nUpdated python code to make it PEP-8 compliant.\r\nAdded authoring information on python files.\r\nAdded a README.rst following the models present on OCA modules.\r\n\r\nFixed a bug when making a new version.\r\nNew versions ended up not being linked with the new view, and the old\r\nversion was linked instead.\r\nThis also caused unwanted publishing of new versions made from master.","created_at":"2016-08-12T13:19:16Z","updated_at":"2016-10-04T11:45:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0f8bab86c44d93345db49fd59c5e53a533065b04","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/OCA/website/milestones/2","html_url":"https://github.com/OCA/website/milestones/9.0","labels_url":"https://api.github.com/repos/OCA/website/milestones/2/labels","id":1354424,"number":2,"title":"9.0","description":null,"creator":{"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},"open_issues":18,"closed_issues":19,"state":"open","created_at":"2015-10-14T00:57:26Z","updated_at":"2016-10-04T09:36:00Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/OCA/website/pulls/242/commits","review_comments_url":"https://api.github.com/repos/OCA/website/pulls/242/comments","review_comment_url":"https://api.github.com/repos/OCA/website/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OCA/website/issues/242/comments","statuses_url":"https://api.github.com/repos/OCA/website/statuses/6c3d87fe2dd38ef6408e7a946f29e1d0f1881d5a","head":{"label":"nicolas-petit:9.0","ref":"9.0","sha":"6c3d87fe2dd38ef6408e7a946f29e1d0f1881d5a","user":{"login":"nicolas-petit","id":13420156,"avatar_url":"https://avatars.githubusercontent.com/u/13420156?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolas-petit","html_url":"https://github.com/nicolas-petit","followers_url":"https://api.github.com/users/nicolas-petit/followers","following_url":"https://api.github.com/users/nicolas-petit/following{/other_user}","gists_url":"https://api.github.com/users/nicolas-petit/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolas-petit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolas-petit/subscriptions","organizations_url":"https://api.github.com/users/nicolas-petit/orgs","repos_url":"https://api.github.com/users/nicolas-petit/repos","events_url":"https://api.github.com/users/nicolas-petit/events{/privacy}","received_events_url":"https://api.github.com/users/nicolas-petit/received_events","type":"User","site_admin":false},"repo":{"id":65553926,"name":"website","full_name":"nicolas-petit/website","owner":{"login":"nicolas-petit","id":13420156,"avatar_url":"https://avatars.githubusercontent.com/u/13420156?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolas-petit","html_url":"https://github.com/nicolas-petit","followers_url":"https://api.github.com/users/nicolas-petit/followers","following_url":"https://api.github.com/users/nicolas-petit/following{/other_user}","gists_url":"https://api.github.com/users/nicolas-petit/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolas-petit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolas-petit/subscriptions","organizations_url":"https://api.github.com/users/nicolas-petit/orgs","repos_url":"https://api.github.com/users/nicolas-petit/repos","events_url":"https://api.github.com/users/nicolas-petit/events{/privacy}","received_events_url":"https://api.github.com/users/nicolas-petit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nicolas-petit/website","description":"Odoo website builder addons","fork":true,"url":"https://api.github.com/repos/nicolas-petit/website","forks_url":"https://api.github.com/repos/nicolas-petit/website/forks","keys_url":"https://api.github.com/repos/nicolas-petit/website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nicolas-petit/website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nicolas-petit/website/teams","hooks_url":"https://api.github.com/repos/nicolas-petit/website/hooks","issue_events_url":"https://api.github.com/repos/nicolas-petit/website/issues/events{/number}","events_url":"https://api.github.com/repos/nicolas-petit/website/events","assignees_url":"https://api.github.com/repos/nicolas-petit/website/assignees{/user}","branches_url":"https://api.github.com/repos/nicolas-petit/website/branches{/branch}","tags_url":"https://api.github.com/repos/nicolas-petit/website/tags","blobs_url":"https://api.github.com/repos/nicolas-petit/website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nicolas-petit/website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nicolas-petit/website/git/refs{/sha}","trees_url":"https://api.github.com/repos/nicolas-petit/website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nicolas-petit/website/statuses/{sha}","languages_url":"https://api.github.com/repos/nicolas-petit/website/languages","stargazers_url":"https://api.github.com/repos/nicolas-petit/website/stargazers","contributors_url":"https://api.github.com/repos/nicolas-petit/website/contributors","subscribers_url":"https://api.github.com/repos/nicolas-petit/website/subscribers","subscription_url":"https://api.github.com/repos/nicolas-petit/website/subscription","commits_url":"https://api.github.com/repos/nicolas-petit/website/commits{/sha}","git_commits_url":"https://api.github.com/repos/nicolas-petit/website/git/commits{/sha}","comments_url":"https://api.github.com/repos/nicolas-petit/website/comments{/number}","issue_comment_url":"https://api.github.com/repos/nicolas-petit/website/issues/comments{/number}","contents_url":"https://api.github.com/repos/nicolas-petit/website/contents/{+path}","compare_url":"https://api.github.com/repos/nicolas-petit/website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nicolas-petit/website/merges","archive_url":"https://api.github.com/repos/nicolas-petit/website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nicolas-petit/website/downloads","issues_url":"https://api.github.com/repos/nicolas-petit/website/issues{/number}","pulls_url":"https://api.github.com/repos/nicolas-petit/website/pulls{/number}","milestones_url":"https://api.github.com/repos/nicolas-petit/website/milestones{/number}","notifications_url":"https://api.github.com/repos/nicolas-petit/website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nicolas-petit/website/labels{/name}","releases_url":"https://api.github.com/repos/nicolas-petit/website/releases{/id}","deployments_url":"https://api.github.com/repos/nicolas-petit/website/deployments","created_at":"2016-08-12T13:07:37Z","updated_at":"2016-08-12T13:07:38Z","pushed_at":"2016-08-23T07:44:19Z","git_url":"git://github.com/nicolas-petit/website.git","ssh_url":"git@github.com:nicolas-petit/website.git","clone_url":"https://github.com/nicolas-petit/website.git","svn_url":"https://github.com/nicolas-petit/website","homepage":"","size":7959,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"9.0"}},"base":{"label":"OCA:9.0","ref":"9.0","sha":"b93e641083fa84bea8de0f9ee7c20ae83bd7f94c","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":21942491,"name":"website","full_name":"OCA/website","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/website","description":"Odoo website builder addons","fork":false,"url":"https://api.github.com/repos/OCA/website","forks_url":"https://api.github.com/repos/OCA/website/forks","keys_url":"https://api.github.com/repos/OCA/website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OCA/website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OCA/website/teams","hooks_url":"https://api.github.com/repos/OCA/website/hooks","issue_events_url":"https://api.github.com/repos/OCA/website/issues/events{/number}","events_url":"https://api.github.com/repos/OCA/website/events","assignees_url":"https://api.github.com/repos/OCA/website/assignees{/user}","branches_url":"https://api.github.com/repos/OCA/website/branches{/branch}","tags_url":"https://api.github.com/repos/OCA/website/tags","blobs_url":"https://api.github.com/repos/OCA/website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OCA/website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OCA/website/git/refs{/sha}","trees_url":"https://api.github.com/repos/OCA/website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OCA/website/statuses/{sha}","languages_url":"https://api.github.com/repos/OCA/website/languages","stargazers_url":"https://api.github.com/repos/OCA/website/stargazers","contributors_url":"https://api.github.com/repos/OCA/website/contributors","subscribers_url":"https://api.github.com/repos/OCA/website/subscribers","subscription_url":"https://api.github.com/repos/OCA/website/subscription","commits_url":"https://api.github.com/repos/OCA/website/commits{/sha}","git_commits_url":"https://api.github.com/repos/OCA/website/git/commits{/sha}","comments_url":"https://api.github.com/repos/OCA/website/comments{/number}","issue_comment_url":"https://api.github.com/repos/OCA/website/issues/comments{/number}","contents_url":"https://api.github.com/repos/OCA/website/contents/{+path}","compare_url":"https://api.github.com/repos/OCA/website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OCA/website/merges","archive_url":"https://api.github.com/repos/OCA/website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OCA/website/downloads","issues_url":"https://api.github.com/repos/OCA/website/issues{/number}","pulls_url":"https://api.github.com/repos/OCA/website/pulls{/number}","milestones_url":"https://api.github.com/repos/OCA/website/milestones{/number}","notifications_url":"https://api.github.com/repos/OCA/website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OCA/website/labels{/name}","releases_url":"https://api.github.com/repos/OCA/website/releases{/id}","deployments_url":"https://api.github.com/repos/OCA/website/deployments","created_at":"2014-07-17T13:16:54Z","updated_at":"2016-09-27T01:06:18Z","pushed_at":"2016-10-04T11:44:45Z","git_url":"git://github.com/OCA/website.git","ssh_url":"git@github.com:OCA/website.git","clone_url":"https://github.com/OCA/website.git","svn_url":"https://github.com/OCA/website","homepage":"","size":19134,"stargazers_count":49,"watchers_count":49,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":181,"mirror_url":null,"open_issues_count":51,"forks":181,"open_issues":51,"watchers":49,"default_branch":"9.0"}},"_links":{"self":{"href":"https://api.github.com/repos/OCA/website/pulls/242"},"html":{"href":"https://github.com/OCA/website/pull/242"},"issue":{"href":"https://api.github.com/repos/OCA/website/issues/242"},"comments":{"href":"https://api.github.com/repos/OCA/website/issues/242/comments"},"review_comments":{"href":"https://api.github.com/repos/OCA/website/pulls/242/comments"},"review_comment":{"href":"https://api.github.com/repos/OCA/website/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OCA/website/pulls/242/commits"},"statuses":{"href":"https://api.github.com/repos/OCA/website/statuses/6c3d87fe2dd38ef6408e7a946f29e1d0f1881d5a"}}}}
{"actor":{"display_login":"pedrobaeza"}}