{"action":"created","comment":{"url":"https://api.github.com/repos/QubesOS/qubes-core-admin/pulls/comments/115620213","pull_request_review_id":37174727,"id":115620213,"diff_hunk":"@@ -115,6 +115,17 @@ def add_handler(cls, event, func):\n         # pylint: disable=no-member\n         cls.__handlers__[event].add(func)\n \n+    @classmethod\n+    def remove_handler(cls, event, func):\n+        '''Remove event handler from subject's class.\n+\n+        :param str event: event identificator\n+        :param collections.Callable handler: handler callable\n+        '''\n+\n+        # pylint: disable=no-member\n+        cls.__handlers__[event].remove(func)\n+","path":"qubes/events.py","position":14,"original_position":14,"commit_id":"31b7dae5154f2fdbda3a6a00604c1892108e8ffc","original_commit_id":"31b7dae5154f2fdbda3a6a00604c1892108e8ffc","user":{"login":"marmarek","id":726704,"avatar_url":"https://avatars2.githubusercontent.com/u/726704?v=3","gravatar_id":"","url":"https://api.github.com/users/marmarek","html_url":"https://github.com/marmarek","followers_url":"https://api.github.com/users/marmarek/followers","following_url":"https://api.github.com/users/marmarek/following{/other_user}","gists_url":"https://api.github.com/users/marmarek/gists{/gist_id}","starred_url":"https://api.github.com/users/marmarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmarek/subscriptions","organizations_url":"https://api.github.com/users/marmarek/orgs","repos_url":"https://api.github.com/users/marmarek/repos","events_url":"https://api.github.com/users/marmarek/events{/privacy}","received_events_url":"https://api.github.com/users/marmarek/received_events","type":"User","site_admin":false},"body":"This will duplicate events distribution code.","created_at":"2017-05-09T22:47:02Z","updated_at":"2017-05-09T22:47:02Z","html_url":"https://github.com/QubesOS/qubes-core-admin/pull/100#discussion_r115620213","pull_request_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/pulls/100","_links":{"self":{"href":"https://api.github.com/repos/QubesOS/qubes-core-admin/pulls/comments/115620213"},"html":{"href":"https://github.com/QubesOS/qubes-core-admin/pull/100#discussion_r115620213"},"pull_request":{"href":"https://api.github.com/repos/QubesOS/qubes-core-admin/pulls/100"}}},"pull_request":{"url":"https://api.github.com/repos/QubesOS/qubes-core-admin/pulls/100","id":117062619,"html_url":"https://github.com/QubesOS/qubes-core-admin/pull/100","diff_url":"https://github.com/QubesOS/qubes-core-admin/pull/100.diff","patch_url":"https://github.com/QubesOS/qubes-core-admin/pull/100.patch","issue_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/issues/100","number":100,"state":"open","locked":false,"title":"Some more mgmt methods","user":{"login":"marmarek","id":726704,"avatar_url":"https://avatars2.githubusercontent.com/u/726704?v=3","gravatar_id":"","url":"https://api.github.com/users/marmarek","html_url":"https://github.com/marmarek","followers_url":"https://api.github.com/users/marmarek/followers","following_url":"https://api.github.com/users/marmarek/following{/other_user}","gists_url":"https://api.github.com/users/marmarek/gists{/gist_id}","starred_url":"https://api.github.com/users/marmarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmarek/subscriptions","organizations_url":"https://api.github.com/users/marmarek/orgs","repos_url":"https://api.github.com/users/marmarek/repos","events_url":"https://api.github.com/users/marmarek/events{/privacy}","received_events_url":"https://api.github.com/users/marmarek/received_events","type":"User","site_admin":false},"body":"- features\r\n- events\r\n- handle read-only properties (were standard `@property`)\r\n- minor changes/fixes needed to handle gui-daemon startup at mgmt-client side","created_at":"2017-04-21T20:36:59Z","updated_at":"2017-05-09T22:47:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a865dd467a94209e3dd1ba0e12b8c36bd54347fc","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/pulls/100/commits","review_comments_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/pulls/100/comments","review_comment_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/issues/100/comments","statuses_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/statuses/31b7dae5154f2fdbda3a6a00604c1892108e8ffc","head":{"label":"marmarek:core3-mgmt-methods2","ref":"core3-mgmt-methods2","sha":"31b7dae5154f2fdbda3a6a00604c1892108e8ffc","user":{"login":"marmarek","id":726704,"avatar_url":"https://avatars2.githubusercontent.com/u/726704?v=3","gravatar_id":"","url":"https://api.github.com/users/marmarek","html_url":"https://github.com/marmarek","followers_url":"https://api.github.com/users/marmarek/followers","following_url":"https://api.github.com/users/marmarek/following{/other_user}","gists_url":"https://api.github.com/users/marmarek/gists{/gist_id}","starred_url":"https://api.github.com/users/marmarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmarek/subscriptions","organizations_url":"https://api.github.com/users/marmarek/orgs","repos_url":"https://api.github.com/users/marmarek/repos","events_url":"https://api.github.com/users/marmarek/events{/privacy}","received_events_url":"https://api.github.com/users/marmarek/received_events","type":"User","site_admin":false},"repo":{"id":72195804,"name":"qubes-core-admin","full_name":"marmarek/qubes-core-admin","owner":{"login":"marmarek","id":726704,"avatar_url":"https://avatars2.githubusercontent.com/u/726704?v=3","gravatar_id":"","url":"https://api.github.com/users/marmarek","html_url":"https://github.com/marmarek","followers_url":"https://api.github.com/users/marmarek/followers","following_url":"https://api.github.com/users/marmarek/following{/other_user}","gists_url":"https://api.github.com/users/marmarek/gists{/gist_id}","starred_url":"https://api.github.com/users/marmarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmarek/subscriptions","organizations_url":"https://api.github.com/users/marmarek/orgs","repos_url":"https://api.github.com/users/marmarek/repos","events_url":"https://api.github.com/users/marmarek/events{/privacy}","received_events_url":"https://api.github.com/users/marmarek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marmarek/qubes-core-admin","description":"Qubes component: core-admin","fork":true,"url":"https://api.github.com/repos/marmarek/qubes-core-admin","forks_url":"https://api.github.com/repos/marmarek/qubes-core-admin/forks","keys_url":"https://api.github.com/repos/marmarek/qubes-core-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marmarek/qubes-core-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marmarek/qubes-core-admin/teams","hooks_url":"https://api.github.com/repos/marmarek/qubes-core-admin/hooks","issue_events_url":"https://api.github.com/repos/marmarek/qubes-core-admin/issues/events{/number}","events_url":"https://api.github.com/repos/marmarek/qubes-core-admin/events","assignees_url":"https://api.github.com/repos/marmarek/qubes-core-admin/assignees{/user}","branches_url":"https://api.github.com/repos/marmarek/qubes-core-admin/branches{/branch}","tags_url":"https://api.github.com/repos/marmarek/qubes-core-admin/tags","blobs_url":"https://api.github.com/repos/marmarek/qubes-core-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marmarek/qubes-core-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marmarek/qubes-core-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/marmarek/qubes-core-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marmarek/qubes-core-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/marmarek/qubes-core-admin/languages","stargazers_url":"https://api.github.com/repos/marmarek/qubes-core-admin/stargazers","contributors_url":"https://api.github.com/repos/marmarek/qubes-core-admin/contributors","subscribers_url":"https://api.github.com/repos/marmarek/qubes-core-admin/subscribers","subscription_url":"https://api.github.com/repos/marmarek/qubes-core-admin/subscription","commits_url":"https://api.github.com/repos/marmarek/qubes-core-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/marmarek/qubes-core-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/marmarek/qubes-core-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/marmarek/qubes-core-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/marmarek/qubes-core-admin/contents/{+path}","compare_url":"https://api.github.com/repos/marmarek/qubes-core-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marmarek/qubes-core-admin/merges","archive_url":"https://api.github.com/repos/marmarek/qubes-core-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marmarek/qubes-core-admin/downloads","issues_url":"https://api.github.com/repos/marmarek/qubes-core-admin/issues{/number}","pulls_url":"https://api.github.com/repos/marmarek/qubes-core-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/marmarek/qubes-core-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/marmarek/qubes-core-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marmarek/qubes-core-admin/labels{/name}","releases_url":"https://api.github.com/repos/marmarek/qubes-core-admin/releases{/id}","deployments_url":"https://api.github.com/repos/marmarek/qubes-core-admin/deployments","created_at":"2016-10-28T09:52:43Z","updated_at":"2016-10-28T09:52:45Z","pushed_at":"2017-05-05T07:15:33Z","git_url":"git://github.com/marmarek/qubes-core-admin.git","ssh_url":"git@github.com:marmarek/qubes-core-admin.git","clone_url":"https://github.com/marmarek/qubes-core-admin.git","svn_url":"https://github.com/marmarek/qubes-core-admin","homepage":null,"size":11964,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"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":"QubesOS:core3-devel","ref":"core3-devel","sha":"d75fc6c28b57a4ec34b9e41d6058e3788a72199d","user":{"login":"QubesOS","id":10213205,"avatar_url":"https://avatars0.githubusercontent.com/u/10213205?v=3","gravatar_id":"","url":"https://api.github.com/users/QubesOS","html_url":"https://github.com/QubesOS","followers_url":"https://api.github.com/users/QubesOS/followers","following_url":"https://api.github.com/users/QubesOS/following{/other_user}","gists_url":"https://api.github.com/users/QubesOS/gists{/gist_id}","starred_url":"https://api.github.com/users/QubesOS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QubesOS/subscriptions","organizations_url":"https://api.github.com/users/QubesOS/orgs","repos_url":"https://api.github.com/users/QubesOS/repos","events_url":"https://api.github.com/users/QubesOS/events{/privacy}","received_events_url":"https://api.github.com/users/QubesOS/received_events","type":"Organization","site_admin":false},"repo":{"id":30624141,"name":"qubes-core-admin","full_name":"QubesOS/qubes-core-admin","owner":{"login":"QubesOS","id":10213205,"avatar_url":"https://avatars0.githubusercontent.com/u/10213205?v=3","gravatar_id":"","url":"https://api.github.com/users/QubesOS","html_url":"https://github.com/QubesOS","followers_url":"https://api.github.com/users/QubesOS/followers","following_url":"https://api.github.com/users/QubesOS/following{/other_user}","gists_url":"https://api.github.com/users/QubesOS/gists{/gist_id}","starred_url":"https://api.github.com/users/QubesOS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QubesOS/subscriptions","organizations_url":"https://api.github.com/users/QubesOS/orgs","repos_url":"https://api.github.com/users/QubesOS/repos","events_url":"https://api.github.com/users/QubesOS/events{/privacy}","received_events_url":"https://api.github.com/users/QubesOS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/QubesOS/qubes-core-admin","description":"Qubes component: core-admin","fork":false,"url":"https://api.github.com/repos/QubesOS/qubes-core-admin","forks_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/forks","keys_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/teams","hooks_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/hooks","issue_events_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/issues/events{/number}","events_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/events","assignees_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/assignees{/user}","branches_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/branches{/branch}","tags_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/tags","blobs_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/languages","stargazers_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/stargazers","contributors_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/contributors","subscribers_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/subscribers","subscription_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/subscription","commits_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/contents/{+path}","compare_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/merges","archive_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/downloads","issues_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/issues{/number}","pulls_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/labels{/name}","releases_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/releases{/id}","deployments_url":"https://api.github.com/repos/QubesOS/qubes-core-admin/deployments","created_at":"2015-02-11T01:27:30Z","updated_at":"2017-03-24T12:30:45Z","pushed_at":"2017-04-23T14:22:29Z","git_url":"git://github.com/QubesOS/qubes-core-admin.git","ssh_url":"git@github.com:QubesOS/qubes-core-admin.git","clone_url":"https://github.com/QubesOS/qubes-core-admin.git","svn_url":"https://github.com/QubesOS/qubes-core-admin","homepage":null,"size":11692,"stargazers_count":25,"watchers_count":25,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":42,"mirror_url":null,"open_issues_count":2,"forks":42,"open_issues":2,"watchers":25,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/QubesOS/qubes-core-admin/pulls/100"},"html":{"href":"https://github.com/QubesOS/qubes-core-admin/pull/100"},"issue":{"href":"https://api.github.com/repos/QubesOS/qubes-core-admin/issues/100"},"comments":{"href":"https://api.github.com/repos/QubesOS/qubes-core-admin/issues/100/comments"},"review_comments":{"href":"https://api.github.com/repos/QubesOS/qubes-core-admin/pulls/100/comments"},"review_comment":{"href":"https://api.github.com/repos/QubesOS/qubes-core-admin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/QubesOS/qubes-core-admin/pulls/100/commits"},"statuses":{"href":"https://api.github.com/repos/QubesOS/qubes-core-admin/statuses/31b7dae5154f2fdbda3a6a00604c1892108e8ffc"}}}}
{"actor":{"display_login":"marmarek"}}