{"action":"created","comment":{"url":"https://api.github.com/repos/gfcapalbo/website_chd/pulls/comments/24075483","id":24075483,"diff_hunk":"@@ -0,0 +1,237 @@\n+# -*- coding: utf-8 -*-\n+from openerp import http\n+from openerp.http import request\n+from openerp.osv import orm\n+import json\n+\n+\n+class Chd_website(http.Controller):\n+\n+    @http.route('/chd_init/', auth='public', website=True)\n+    def start(self, selected_id=False, type=False):\n+        partner = self.get_current_partner()\n+        if partner is False:","path":"website_chd_product_configurator/controllers/controllers.py","position":13,"original_position":13,"commit_id":"34cd6fefb1e78bba8ee0661a0b0bc21be13d621b","original_commit_id":"34cd6fefb1e78bba8ee0661a0b0bc21be13d621b","user":{"login":"hbrunn","id":2563186,"avatar_url":"https://avatars.githubusercontent.com/u/2563186?v=3","gravatar_id":"","url":"https://api.github.com/users/hbrunn","html_url":"https://github.com/hbrunn","followers_url":"https://api.github.com/users/hbrunn/followers","following_url":"https://api.github.com/users/hbrunn/following{/other_user}","gists_url":"https://api.github.com/users/hbrunn/gists{/gist_id}","starred_url":"https://api.github.com/users/hbrunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hbrunn/subscriptions","organizations_url":"https://api.github.com/users/hbrunn/orgs","repos_url":"https://api.github.com/users/hbrunn/repos","events_url":"https://api.github.com/users/hbrunn/events{/privacy}","received_events_url":"https://api.github.com/users/hbrunn/received_events","type":"User","site_admin":false},"body":"this checks for partner being exactly False, but you probably also want to have that for an empty recordset, so better only check for falsyness: `if not partner:`","created_at":"2015-02-04T10:54:27Z","updated_at":"2015-02-04T10:54:27Z","html_url":"https://github.com/gfcapalbo/website_chd/pull/1#discussion_r24075483","pull_request_url":"https://api.github.com/repos/gfcapalbo/website_chd/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/gfcapalbo/website_chd/pulls/comments/24075483"},"html":{"href":"https://github.com/gfcapalbo/website_chd/pull/1#discussion_r24075483"},"pull_request":{"href":"https://api.github.com/repos/gfcapalbo/website_chd/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/gfcapalbo/website_chd/pulls/1","id":28625428,"html_url":"https://github.com/gfcapalbo/website_chd/pull/1","diff_url":"https://github.com/gfcapalbo/website_chd/pull/1.diff","patch_url":"https://github.com/gfcapalbo/website_chd/pull/1.patch","issue_url":"https://api.github.com/repos/gfcapalbo/website_chd/issues/1","number":1,"state":"open","locked":false,"title":"[ADD] first commit","user":{"login":"gfcapalbo","id":8994879,"avatar_url":"https://avatars.githubusercontent.com/u/8994879?v=3","gravatar_id":"","url":"https://api.github.com/users/gfcapalbo","html_url":"https://github.com/gfcapalbo","followers_url":"https://api.github.com/users/gfcapalbo/followers","following_url":"https://api.github.com/users/gfcapalbo/following{/other_user}","gists_url":"https://api.github.com/users/gfcapalbo/gists{/gist_id}","starred_url":"https://api.github.com/users/gfcapalbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfcapalbo/subscriptions","organizations_url":"https://api.github.com/users/gfcapalbo/orgs","repos_url":"https://api.github.com/users/gfcapalbo/repos","events_url":"https://api.github.com/users/gfcapalbo/events{/privacy}","received_events_url":"https://api.github.com/users/gfcapalbo/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-04T09:56:58Z","updated_at":"2015-02-04T10:54:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"42ae66a55fbe896e977b5844d08b91fdce319ca0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gfcapalbo/website_chd/pulls/1/commits","review_comments_url":"https://api.github.com/repos/gfcapalbo/website_chd/pulls/1/comments","review_comment_url":"https://api.github.com/repos/gfcapalbo/website_chd/pulls/comments/{number}","comments_url":"https://api.github.com/repos/gfcapalbo/website_chd/issues/1/comments","statuses_url":"https://api.github.com/repos/gfcapalbo/website_chd/statuses/34cd6fefb1e78bba8ee0661a0b0bc21be13d621b","head":{"label":"gfcapalbo:8.0_chd_website","ref":"8.0_chd_website","sha":"34cd6fefb1e78bba8ee0661a0b0bc21be13d621b","user":{"login":"gfcapalbo","id":8994879,"avatar_url":"https://avatars.githubusercontent.com/u/8994879?v=3","gravatar_id":"","url":"https://api.github.com/users/gfcapalbo","html_url":"https://github.com/gfcapalbo","followers_url":"https://api.github.com/users/gfcapalbo/followers","following_url":"https://api.github.com/users/gfcapalbo/following{/other_user}","gists_url":"https://api.github.com/users/gfcapalbo/gists{/gist_id}","starred_url":"https://api.github.com/users/gfcapalbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfcapalbo/subscriptions","organizations_url":"https://api.github.com/users/gfcapalbo/orgs","repos_url":"https://api.github.com/users/gfcapalbo/repos","events_url":"https://api.github.com/users/gfcapalbo/events{/privacy}","received_events_url":"https://api.github.com/users/gfcapalbo/received_events","type":"User","site_admin":false},"repo":{"id":30291924,"name":"website_chd","full_name":"gfcapalbo/website_chd","owner":{"login":"gfcapalbo","id":8994879,"avatar_url":"https://avatars.githubusercontent.com/u/8994879?v=3","gravatar_id":"","url":"https://api.github.com/users/gfcapalbo","html_url":"https://github.com/gfcapalbo","followers_url":"https://api.github.com/users/gfcapalbo/followers","following_url":"https://api.github.com/users/gfcapalbo/following{/other_user}","gists_url":"https://api.github.com/users/gfcapalbo/gists{/gist_id}","starred_url":"https://api.github.com/users/gfcapalbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfcapalbo/subscriptions","organizations_url":"https://api.github.com/users/gfcapalbo/orgs","repos_url":"https://api.github.com/users/gfcapalbo/repos","events_url":"https://api.github.com/users/gfcapalbo/events{/privacy}","received_events_url":"https://api.github.com/users/gfcapalbo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gfcapalbo/website_chd","description":"Website modules ","fork":false,"url":"https://api.github.com/repos/gfcapalbo/website_chd","forks_url":"https://api.github.com/repos/gfcapalbo/website_chd/forks","keys_url":"https://api.github.com/repos/gfcapalbo/website_chd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gfcapalbo/website_chd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gfcapalbo/website_chd/teams","hooks_url":"https://api.github.com/repos/gfcapalbo/website_chd/hooks","issue_events_url":"https://api.github.com/repos/gfcapalbo/website_chd/issues/events{/number}","events_url":"https://api.github.com/repos/gfcapalbo/website_chd/events","assignees_url":"https://api.github.com/repos/gfcapalbo/website_chd/assignees{/user}","branches_url":"https://api.github.com/repos/gfcapalbo/website_chd/branches{/branch}","tags_url":"https://api.github.com/repos/gfcapalbo/website_chd/tags","blobs_url":"https://api.github.com/repos/gfcapalbo/website_chd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gfcapalbo/website_chd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gfcapalbo/website_chd/git/refs{/sha}","trees_url":"https://api.github.com/repos/gfcapalbo/website_chd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gfcapalbo/website_chd/statuses/{sha}","languages_url":"https://api.github.com/repos/gfcapalbo/website_chd/languages","stargazers_url":"https://api.github.com/repos/gfcapalbo/website_chd/stargazers","contributors_url":"https://api.github.com/repos/gfcapalbo/website_chd/contributors","subscribers_url":"https://api.github.com/repos/gfcapalbo/website_chd/subscribers","subscription_url":"https://api.github.com/repos/gfcapalbo/website_chd/subscription","commits_url":"https://api.github.com/repos/gfcapalbo/website_chd/commits{/sha}","git_commits_url":"https://api.github.com/repos/gfcapalbo/website_chd/git/commits{/sha}","comments_url":"https://api.github.com/repos/gfcapalbo/website_chd/comments{/number}","issue_comment_url":"https://api.github.com/repos/gfcapalbo/website_chd/issues/comments/{number}","contents_url":"https://api.github.com/repos/gfcapalbo/website_chd/contents/{+path}","compare_url":"https://api.github.com/repos/gfcapalbo/website_chd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gfcapalbo/website_chd/merges","archive_url":"https://api.github.com/repos/gfcapalbo/website_chd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gfcapalbo/website_chd/downloads","issues_url":"https://api.github.com/repos/gfcapalbo/website_chd/issues{/number}","pulls_url":"https://api.github.com/repos/gfcapalbo/website_chd/pulls{/number}","milestones_url":"https://api.github.com/repos/gfcapalbo/website_chd/milestones{/number}","notifications_url":"https://api.github.com/repos/gfcapalbo/website_chd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gfcapalbo/website_chd/labels{/name}","releases_url":"https://api.github.com/repos/gfcapalbo/website_chd/releases{/id}","created_at":"2015-02-04T09:44:56Z","updated_at":"2015-02-04T09:44:56Z","pushed_at":"2015-02-04T10:28:42Z","git_url":"git://github.com/gfcapalbo/website_chd.git","ssh_url":"git@github.com:gfcapalbo/website_chd.git","clone_url":"https://github.com/gfcapalbo/website_chd.git","svn_url":"https://github.com/gfcapalbo/website_chd","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"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":"8.0"}},"base":{"label":"gfcapalbo:8.0","ref":"8.0","sha":"1e4157c6246d2b843fbcfb250d274c742cd0a226","user":{"login":"gfcapalbo","id":8994879,"avatar_url":"https://avatars.githubusercontent.com/u/8994879?v=3","gravatar_id":"","url":"https://api.github.com/users/gfcapalbo","html_url":"https://github.com/gfcapalbo","followers_url":"https://api.github.com/users/gfcapalbo/followers","following_url":"https://api.github.com/users/gfcapalbo/following{/other_user}","gists_url":"https://api.github.com/users/gfcapalbo/gists{/gist_id}","starred_url":"https://api.github.com/users/gfcapalbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfcapalbo/subscriptions","organizations_url":"https://api.github.com/users/gfcapalbo/orgs","repos_url":"https://api.github.com/users/gfcapalbo/repos","events_url":"https://api.github.com/users/gfcapalbo/events{/privacy}","received_events_url":"https://api.github.com/users/gfcapalbo/received_events","type":"User","site_admin":false},"repo":{"id":30291924,"name":"website_chd","full_name":"gfcapalbo/website_chd","owner":{"login":"gfcapalbo","id":8994879,"avatar_url":"https://avatars.githubusercontent.com/u/8994879?v=3","gravatar_id":"","url":"https://api.github.com/users/gfcapalbo","html_url":"https://github.com/gfcapalbo","followers_url":"https://api.github.com/users/gfcapalbo/followers","following_url":"https://api.github.com/users/gfcapalbo/following{/other_user}","gists_url":"https://api.github.com/users/gfcapalbo/gists{/gist_id}","starred_url":"https://api.github.com/users/gfcapalbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfcapalbo/subscriptions","organizations_url":"https://api.github.com/users/gfcapalbo/orgs","repos_url":"https://api.github.com/users/gfcapalbo/repos","events_url":"https://api.github.com/users/gfcapalbo/events{/privacy}","received_events_url":"https://api.github.com/users/gfcapalbo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gfcapalbo/website_chd","description":"Website modules ","fork":false,"url":"https://api.github.com/repos/gfcapalbo/website_chd","forks_url":"https://api.github.com/repos/gfcapalbo/website_chd/forks","keys_url":"https://api.github.com/repos/gfcapalbo/website_chd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gfcapalbo/website_chd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gfcapalbo/website_chd/teams","hooks_url":"https://api.github.com/repos/gfcapalbo/website_chd/hooks","issue_events_url":"https://api.github.com/repos/gfcapalbo/website_chd/issues/events{/number}","events_url":"https://api.github.com/repos/gfcapalbo/website_chd/events","assignees_url":"https://api.github.com/repos/gfcapalbo/website_chd/assignees{/user}","branches_url":"https://api.github.com/repos/gfcapalbo/website_chd/branches{/branch}","tags_url":"https://api.github.com/repos/gfcapalbo/website_chd/tags","blobs_url":"https://api.github.com/repos/gfcapalbo/website_chd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gfcapalbo/website_chd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gfcapalbo/website_chd/git/refs{/sha}","trees_url":"https://api.github.com/repos/gfcapalbo/website_chd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gfcapalbo/website_chd/statuses/{sha}","languages_url":"https://api.github.com/repos/gfcapalbo/website_chd/languages","stargazers_url":"https://api.github.com/repos/gfcapalbo/website_chd/stargazers","contributors_url":"https://api.github.com/repos/gfcapalbo/website_chd/contributors","subscribers_url":"https://api.github.com/repos/gfcapalbo/website_chd/subscribers","subscription_url":"https://api.github.com/repos/gfcapalbo/website_chd/subscription","commits_url":"https://api.github.com/repos/gfcapalbo/website_chd/commits{/sha}","git_commits_url":"https://api.github.com/repos/gfcapalbo/website_chd/git/commits{/sha}","comments_url":"https://api.github.com/repos/gfcapalbo/website_chd/comments{/number}","issue_comment_url":"https://api.github.com/repos/gfcapalbo/website_chd/issues/comments/{number}","contents_url":"https://api.github.com/repos/gfcapalbo/website_chd/contents/{+path}","compare_url":"https://api.github.com/repos/gfcapalbo/website_chd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gfcapalbo/website_chd/merges","archive_url":"https://api.github.com/repos/gfcapalbo/website_chd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gfcapalbo/website_chd/downloads","issues_url":"https://api.github.com/repos/gfcapalbo/website_chd/issues{/number}","pulls_url":"https://api.github.com/repos/gfcapalbo/website_chd/pulls{/number}","milestones_url":"https://api.github.com/repos/gfcapalbo/website_chd/milestones{/number}","notifications_url":"https://api.github.com/repos/gfcapalbo/website_chd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gfcapalbo/website_chd/labels{/name}","releases_url":"https://api.github.com/repos/gfcapalbo/website_chd/releases{/id}","created_at":"2015-02-04T09:44:56Z","updated_at":"2015-02-04T09:44:56Z","pushed_at":"2015-02-04T10:28:42Z","git_url":"git://github.com/gfcapalbo/website_chd.git","ssh_url":"git@github.com:gfcapalbo/website_chd.git","clone_url":"https://github.com/gfcapalbo/website_chd.git","svn_url":"https://github.com/gfcapalbo/website_chd","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"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":"8.0"}},"_links":{"self":{"href":"https://api.github.com/repos/gfcapalbo/website_chd/pulls/1"},"html":{"href":"https://github.com/gfcapalbo/website_chd/pull/1"},"issue":{"href":"https://api.github.com/repos/gfcapalbo/website_chd/issues/1"},"comments":{"href":"https://api.github.com/repos/gfcapalbo/website_chd/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/gfcapalbo/website_chd/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/gfcapalbo/website_chd/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/gfcapalbo/website_chd/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/gfcapalbo/website_chd/statuses/34cd6fefb1e78bba8ee0661a0b0bc21be13d621b"}}}}