{"action":"created","comment":{"url":"https://api.github.com/repos/plone/plone.app.registry/pulls/comments/55585975","id":55585975,"diff_hunk":"@@ -23,6 +24,12 @@ def _starts_with(s, v):\n \n class RecordsControlPanel(BrowserView):\n \n+    @property\n+    def control_panel_url(self):\n+        return u\"{0}/@@overview-controlpanel\".format(\n+            getSite().absolute_url()","path":"plone/app/registry/browser/records.py","position":15,"original_position":15,"commit_id":"8747e4b1650f94418249e6e27fa4c500a3d57a6c","original_commit_id":"8747e4b1650f94418249e6e27fa4c500a3d57a6c","user":{"login":"thet","id":170891,"avatar_url":"https://avatars.githubusercontent.com/u/170891?v=3","gravatar_id":"","url":"https://api.github.com/users/thet","html_url":"https://github.com/thet","followers_url":"https://api.github.com/users/thet/followers","following_url":"https://api.github.com/users/thet/following{/other_user}","gists_url":"https://api.github.com/users/thet/gists{/gist_id}","starred_url":"https://api.github.com/users/thet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thet/subscriptions","organizations_url":"https://api.github.com/users/thet/orgs","repos_url":"https://api.github.com/users/thet/repos","events_url":"https://api.github.com/users/thet/events{/privacy}","received_events_url":"https://api.github.com/users/thet/received_events","type":"User","site_admin":false},"body":"Here, not context is used, but getSite - contrary to the other change, where context is used.\r\nThe reason is, that the context of the ``@@configuration_registry`` controlpanel is the registry itself, where we cannot call the ``@@overview-controlpanel``. Also, it's not given, that the registries parent is a portal. But most likely, when this control panel is called on a registry of a subsite, the subsite is also configured to allow the overview controlpanel to be shown. If not in a subsite, it's the portal root.","created_at":"2016-03-09T20:46:12Z","updated_at":"2016-03-09T20:46:12Z","html_url":"https://github.com/plone/plone.app.registry/pull/17#discussion_r55585975","pull_request_url":"https://api.github.com/repos/plone/plone.app.registry/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/plone/plone.app.registry/pulls/comments/55585975"},"html":{"href":"https://github.com/plone/plone.app.registry/pull/17#discussion_r55585975"},"pull_request":{"href":"https://api.github.com/repos/plone/plone.app.registry/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/plone/plone.app.registry/pulls/17","id":62233007,"html_url":"https://github.com/plone/plone.app.registry/pull/17","diff_url":"https://github.com/plone/plone.app.registry/pull/17.diff","patch_url":"https://github.com/plone/plone.app.registry/pull/17.patch","issue_url":"https://api.github.com/repos/plone/plone.app.registry/issues/17","number":17,"state":"open","locked":false,"title":"Overview control panel url from context","user":{"login":"thet","id":170891,"avatar_url":"https://avatars.githubusercontent.com/u/170891?v=3","gravatar_id":"","url":"https://api.github.com/users/thet","html_url":"https://github.com/thet","followers_url":"https://api.github.com/users/thet/followers","following_url":"https://api.github.com/users/thet/following{/other_user}","gists_url":"https://api.github.com/users/thet/gists{/gist_id}","starred_url":"https://api.github.com/users/thet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thet/subscriptions","organizations_url":"https://api.github.com/users/thet/orgs","repos_url":"https://api.github.com/users/thet/repos","events_url":"https://api.github.com/users/thet/events{/privacy}","received_events_url":"https://api.github.com/users/thet/received_events","type":"User","site_admin":false},"body":"Let the ``RegistryEditForm`` construct the base url to the ``@@overview-controlpanel`` from the context URL instead the portal URL.\r\nThis gives more flexibility when calling controlpanels on contexts with local registries while in standard Plone installations the controlpanel is still bound to the portal url.","created_at":"2016-03-09T14:07:25Z","updated_at":"2016-03-09T20:46:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"050810f04046e02b975e1704c29d1c48db47ad67","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/plone/plone.app.registry/pulls/17/commits","review_comments_url":"https://api.github.com/repos/plone/plone.app.registry/pulls/17/comments","review_comment_url":"https://api.github.com/repos/plone/plone.app.registry/pulls/comments{/number}","comments_url":"https://api.github.com/repos/plone/plone.app.registry/issues/17/comments","statuses_url":"https://api.github.com/repos/plone/plone.app.registry/statuses/8747e4b1650f94418249e6e27fa4c500a3d57a6c","head":{"label":"plone:thet-control-panel-url","ref":"thet-control-panel-url","sha":"8747e4b1650f94418249e6e27fa4c500a3d57a6c","user":{"login":"plone","id":72034,"avatar_url":"https://avatars.githubusercontent.com/u/72034?v=3","gravatar_id":"","url":"https://api.github.com/users/plone","html_url":"https://github.com/plone","followers_url":"https://api.github.com/users/plone/followers","following_url":"https://api.github.com/users/plone/following{/other_user}","gists_url":"https://api.github.com/users/plone/gists{/gist_id}","starred_url":"https://api.github.com/users/plone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plone/subscriptions","organizations_url":"https://api.github.com/users/plone/orgs","repos_url":"https://api.github.com/users/plone/repos","events_url":"https://api.github.com/users/plone/events{/privacy}","received_events_url":"https://api.github.com/users/plone/received_events","type":"Organization","site_admin":false},"repo":{"id":2432582,"name":"plone.app.registry","full_name":"plone/plone.app.registry","owner":{"login":"plone","id":72034,"avatar_url":"https://avatars.githubusercontent.com/u/72034?v=3","gravatar_id":"","url":"https://api.github.com/users/plone","html_url":"https://github.com/plone","followers_url":"https://api.github.com/users/plone/followers","following_url":"https://api.github.com/users/plone/following{/other_user}","gists_url":"https://api.github.com/users/plone/gists{/gist_id}","starred_url":"https://api.github.com/users/plone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plone/subscriptions","organizations_url":"https://api.github.com/users/plone/orgs","repos_url":"https://api.github.com/users/plone/repos","events_url":"https://api.github.com/users/plone/events{/privacy}","received_events_url":"https://api.github.com/users/plone/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/plone/plone.app.registry","description":"provides Plone UI, persistence and GenericSetup integration for plone.registry","fork":false,"url":"https://api.github.com/repos/plone/plone.app.registry","forks_url":"https://api.github.com/repos/plone/plone.app.registry/forks","keys_url":"https://api.github.com/repos/plone/plone.app.registry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/plone/plone.app.registry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/plone/plone.app.registry/teams","hooks_url":"https://api.github.com/repos/plone/plone.app.registry/hooks","issue_events_url":"https://api.github.com/repos/plone/plone.app.registry/issues/events{/number}","events_url":"https://api.github.com/repos/plone/plone.app.registry/events","assignees_url":"https://api.github.com/repos/plone/plone.app.registry/assignees{/user}","branches_url":"https://api.github.com/repos/plone/plone.app.registry/branches{/branch}","tags_url":"https://api.github.com/repos/plone/plone.app.registry/tags","blobs_url":"https://api.github.com/repos/plone/plone.app.registry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/plone/plone.app.registry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/plone/plone.app.registry/git/refs{/sha}","trees_url":"https://api.github.com/repos/plone/plone.app.registry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/plone/plone.app.registry/statuses/{sha}","languages_url":"https://api.github.com/repos/plone/plone.app.registry/languages","stargazers_url":"https://api.github.com/repos/plone/plone.app.registry/stargazers","contributors_url":"https://api.github.com/repos/plone/plone.app.registry/contributors","subscribers_url":"https://api.github.com/repos/plone/plone.app.registry/subscribers","subscription_url":"https://api.github.com/repos/plone/plone.app.registry/subscription","commits_url":"https://api.github.com/repos/plone/plone.app.registry/commits{/sha}","git_commits_url":"https://api.github.com/repos/plone/plone.app.registry/git/commits{/sha}","comments_url":"https://api.github.com/repos/plone/plone.app.registry/comments{/number}","issue_comment_url":"https://api.github.com/repos/plone/plone.app.registry/issues/comments{/number}","contents_url":"https://api.github.com/repos/plone/plone.app.registry/contents/{+path}","compare_url":"https://api.github.com/repos/plone/plone.app.registry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/plone/plone.app.registry/merges","archive_url":"https://api.github.com/repos/plone/plone.app.registry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/plone/plone.app.registry/downloads","issues_url":"https://api.github.com/repos/plone/plone.app.registry/issues{/number}","pulls_url":"https://api.github.com/repos/plone/plone.app.registry/pulls{/number}","milestones_url":"https://api.github.com/repos/plone/plone.app.registry/milestones{/number}","notifications_url":"https://api.github.com/repos/plone/plone.app.registry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/plone/plone.app.registry/labels{/name}","releases_url":"https://api.github.com/repos/plone/plone.app.registry/releases{/id}","deployments_url":"https://api.github.com/repos/plone/plone.app.registry/deployments","created_at":"2011-09-21T20:21:23Z","updated_at":"2015-05-07T22:39:17Z","pushed_at":"2016-03-09T16:07:29Z","git_url":"git://github.com/plone/plone.app.registry.git","ssh_url":"git@github.com:plone/plone.app.registry.git","clone_url":"https://github.com/plone/plone.app.registry.git","svn_url":"https://github.com/plone/plone.app.registry","homepage":"","size":234,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":2,"forks":4,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"plone:master","ref":"master","sha":"07a17651cea3fb073966da6868c178873df85284","user":{"login":"plone","id":72034,"avatar_url":"https://avatars.githubusercontent.com/u/72034?v=3","gravatar_id":"","url":"https://api.github.com/users/plone","html_url":"https://github.com/plone","followers_url":"https://api.github.com/users/plone/followers","following_url":"https://api.github.com/users/plone/following{/other_user}","gists_url":"https://api.github.com/users/plone/gists{/gist_id}","starred_url":"https://api.github.com/users/plone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plone/subscriptions","organizations_url":"https://api.github.com/users/plone/orgs","repos_url":"https://api.github.com/users/plone/repos","events_url":"https://api.github.com/users/plone/events{/privacy}","received_events_url":"https://api.github.com/users/plone/received_events","type":"Organization","site_admin":false},"repo":{"id":2432582,"name":"plone.app.registry","full_name":"plone/plone.app.registry","owner":{"login":"plone","id":72034,"avatar_url":"https://avatars.githubusercontent.com/u/72034?v=3","gravatar_id":"","url":"https://api.github.com/users/plone","html_url":"https://github.com/plone","followers_url":"https://api.github.com/users/plone/followers","following_url":"https://api.github.com/users/plone/following{/other_user}","gists_url":"https://api.github.com/users/plone/gists{/gist_id}","starred_url":"https://api.github.com/users/plone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plone/subscriptions","organizations_url":"https://api.github.com/users/plone/orgs","repos_url":"https://api.github.com/users/plone/repos","events_url":"https://api.github.com/users/plone/events{/privacy}","received_events_url":"https://api.github.com/users/plone/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/plone/plone.app.registry","description":"provides Plone UI, persistence and GenericSetup integration for plone.registry","fork":false,"url":"https://api.github.com/repos/plone/plone.app.registry","forks_url":"https://api.github.com/repos/plone/plone.app.registry/forks","keys_url":"https://api.github.com/repos/plone/plone.app.registry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/plone/plone.app.registry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/plone/plone.app.registry/teams","hooks_url":"https://api.github.com/repos/plone/plone.app.registry/hooks","issue_events_url":"https://api.github.com/repos/plone/plone.app.registry/issues/events{/number}","events_url":"https://api.github.com/repos/plone/plone.app.registry/events","assignees_url":"https://api.github.com/repos/plone/plone.app.registry/assignees{/user}","branches_url":"https://api.github.com/repos/plone/plone.app.registry/branches{/branch}","tags_url":"https://api.github.com/repos/plone/plone.app.registry/tags","blobs_url":"https://api.github.com/repos/plone/plone.app.registry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/plone/plone.app.registry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/plone/plone.app.registry/git/refs{/sha}","trees_url":"https://api.github.com/repos/plone/plone.app.registry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/plone/plone.app.registry/statuses/{sha}","languages_url":"https://api.github.com/repos/plone/plone.app.registry/languages","stargazers_url":"https://api.github.com/repos/plone/plone.app.registry/stargazers","contributors_url":"https://api.github.com/repos/plone/plone.app.registry/contributors","subscribers_url":"https://api.github.com/repos/plone/plone.app.registry/subscribers","subscription_url":"https://api.github.com/repos/plone/plone.app.registry/subscription","commits_url":"https://api.github.com/repos/plone/plone.app.registry/commits{/sha}","git_commits_url":"https://api.github.com/repos/plone/plone.app.registry/git/commits{/sha}","comments_url":"https://api.github.com/repos/plone/plone.app.registry/comments{/number}","issue_comment_url":"https://api.github.com/repos/plone/plone.app.registry/issues/comments{/number}","contents_url":"https://api.github.com/repos/plone/plone.app.registry/contents/{+path}","compare_url":"https://api.github.com/repos/plone/plone.app.registry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/plone/plone.app.registry/merges","archive_url":"https://api.github.com/repos/plone/plone.app.registry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/plone/plone.app.registry/downloads","issues_url":"https://api.github.com/repos/plone/plone.app.registry/issues{/number}","pulls_url":"https://api.github.com/repos/plone/plone.app.registry/pulls{/number}","milestones_url":"https://api.github.com/repos/plone/plone.app.registry/milestones{/number}","notifications_url":"https://api.github.com/repos/plone/plone.app.registry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/plone/plone.app.registry/labels{/name}","releases_url":"https://api.github.com/repos/plone/plone.app.registry/releases{/id}","deployments_url":"https://api.github.com/repos/plone/plone.app.registry/deployments","created_at":"2011-09-21T20:21:23Z","updated_at":"2015-05-07T22:39:17Z","pushed_at":"2016-03-09T16:07:29Z","git_url":"git://github.com/plone/plone.app.registry.git","ssh_url":"git@github.com:plone/plone.app.registry.git","clone_url":"https://github.com/plone/plone.app.registry.git","svn_url":"https://github.com/plone/plone.app.registry","homepage":"","size":234,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":2,"forks":4,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/plone/plone.app.registry/pulls/17"},"html":{"href":"https://github.com/plone/plone.app.registry/pull/17"},"issue":{"href":"https://api.github.com/repos/plone/plone.app.registry/issues/17"},"comments":{"href":"https://api.github.com/repos/plone/plone.app.registry/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/plone/plone.app.registry/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/plone/plone.app.registry/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/plone/plone.app.registry/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/plone/plone.app.registry/statuses/8747e4b1650f94418249e6e27fa4c500a3d57a6c"}}}}