{"action":"created","comment":{"url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/comments/82752477","pull_request_review_id":3637128,"id":82752477,"diff_hunk":"@@ -69,31 +69,63 @@ def get_collection_elements_required_for_this(self, collection_element, config_e\n             output.extend(self.get_requirements_as_collection_elements(config_entry))\n         return output\n \n+    def update_data(self):\n+        data = {}\n+        if Item.objects.filter(pk=self.config_entry.get('id')).exists():\n+            data['agenda_item_id'] = Item.objects.get(pk=self.config_entry.get('id')).item_number\n+        return data\n \n-class CurrentListOfSpeakersSlide(ProjectorElement):\n-    \"\"\"\n-    Slide for the current list of speakers.\n \n-    Nothing special to check.\n+class CurrentListOfSpeakersMetaClass(ProjectorElement):\n     \"\"\"\n-    name = 'agenda/current-list-of-speakers'\n+    Main class for the list of speaker slides.\n \n+    \"\"\"\n     def get_requirements(self, config_entry):\n-        pk = config['projector_currentListOfSpeakers_reference']\n-        if pk is not None:\n-            # List of speakers slide.\n-            try:\n-                item = Item.objects.get(pk=pk)\n-            except Item.DoesNotExist:\n-                # Item does not exist. Just do nothing.\n-                pass\n-            else:\n-                yield item\n-                for speaker in item.speakers.filter(end_time=None):\n-                    # Yield current speaker and next speakers\n-                    yield speaker.user\n+        items = self.get_agenda_items(config['projector_currentListOfSpeakers_reference'])\n+        for item in items:\n+            yield item\n+            for speaker in item.speakers.filter(end_time=None):\n+                yield speaker.user\n                 query = (item.speakers.exclude(end_time=None)","path":"openslides/agenda/projector.py","position":null,"original_position":55,"commit_id":"c6dcef18f733d2efc1039e0ed875a724f4ea4418","original_commit_id":"b1a649ca006e5e927428a01e3896322adc1b91e5","user":{"login":"matakuka","id":11648129,"avatar_url":"https://avatars.githubusercontent.com/u/11648129?v=3","gravatar_id":"","url":"https://api.github.com/users/matakuka","html_url":"https://github.com/matakuka","followers_url":"https://api.github.com/users/matakuka/followers","following_url":"https://api.github.com/users/matakuka/following{/other_user}","gists_url":"https://api.github.com/users/matakuka/gists{/gist_id}","starred_url":"https://api.github.com/users/matakuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matakuka/subscriptions","organizations_url":"https://api.github.com/users/matakuka/orgs","repos_url":"https://api.github.com/users/matakuka/repos","events_url":"https://api.github.com/users/matakuka/events{/privacy}","received_events_url":"https://api.github.com/users/matakuka/received_events","type":"User","site_admin":false},"body":"done","created_at":"2016-10-11T09:11:54Z","updated_at":"2016-10-11T09:11:54Z","html_url":"https://github.com/OpenSlides/OpenSlides/pull/2489#discussion_r82752477","pull_request_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/2489","_links":{"self":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/comments/82752477"},"html":{"href":"https://github.com/OpenSlides/OpenSlides/pull/2489#discussion_r82752477"},"pull_request":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/2489"}}},"pull_request":{"url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/2489","id":88215941,"html_url":"https://github.com/OpenSlides/OpenSlides/pull/2489","diff_url":"https://github.com/OpenSlides/OpenSlides/pull/2489.diff","patch_url":"https://github.com/OpenSlides/OpenSlides/pull/2489.patch","issue_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/2489","number":2489,"state":"open","locked":false,"title":"list-of-speakers overlay (issue #2211, Version 4)","user":{"login":"matakuka","id":11648129,"avatar_url":"https://avatars.githubusercontent.com/u/11648129?v=3","gravatar_id":"","url":"https://api.github.com/users/matakuka","html_url":"https://github.com/matakuka","followers_url":"https://api.github.com/users/matakuka/followers","following_url":"https://api.github.com/users/matakuka/following{/other_user}","gists_url":"https://api.github.com/users/matakuka/gists{/gist_id}","starred_url":"https://api.github.com/users/matakuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matakuka/subscriptions","organizations_url":"https://api.github.com/users/matakuka/orgs","repos_url":"https://api.github.com/users/matakuka/repos","events_url":"https://api.github.com/users/matakuka/events{/privacy}","received_events_url":"https://api.github.com/users/matakuka/received_events","type":"User","site_admin":false},"body":"After all the master changes, it was easier to start a new branch instead of repairing the old one.\r\nPrevious discussion see #2371.","created_at":"2016-10-06T08:12:02Z","updated_at":"2016-10-11T09:11:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dacf74319ea39ff1a3d74b18ff4c4b5cc9283d13","assignee":{"login":"matakuka","id":11648129,"avatar_url":"https://avatars.githubusercontent.com/u/11648129?v=3","gravatar_id":"","url":"https://api.github.com/users/matakuka","html_url":"https://github.com/matakuka","followers_url":"https://api.github.com/users/matakuka/followers","following_url":"https://api.github.com/users/matakuka/following{/other_user}","gists_url":"https://api.github.com/users/matakuka/gists{/gist_id}","starred_url":"https://api.github.com/users/matakuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matakuka/subscriptions","organizations_url":"https://api.github.com/users/matakuka/orgs","repos_url":"https://api.github.com/users/matakuka/repos","events_url":"https://api.github.com/users/matakuka/events{/privacy}","received_events_url":"https://api.github.com/users/matakuka/received_events","type":"User","site_admin":false},"assignees":[{"login":"matakuka","id":11648129,"avatar_url":"https://avatars.githubusercontent.com/u/11648129?v=3","gravatar_id":"","url":"https://api.github.com/users/matakuka","html_url":"https://github.com/matakuka","followers_url":"https://api.github.com/users/matakuka/followers","following_url":"https://api.github.com/users/matakuka/following{/other_user}","gists_url":"https://api.github.com/users/matakuka/gists{/gist_id}","starred_url":"https://api.github.com/users/matakuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matakuka/subscriptions","organizations_url":"https://api.github.com/users/matakuka/orgs","repos_url":"https://api.github.com/users/matakuka/repos","events_url":"https://api.github.com/users/matakuka/events{/privacy}","received_events_url":"https://api.github.com/users/matakuka/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/OpenSlides/OpenSlides/milestones/21","html_url":"https://github.com/OpenSlides/OpenSlides/milestones/2.1","labels_url":"https://api.github.com/repos/OpenSlides/OpenSlides/milestones/21/labels","id":1291312,"number":21,"title":"2.1","description":"","creator":{"login":"ostcar","id":977937,"avatar_url":"https://avatars.githubusercontent.com/u/977937?v=3","gravatar_id":"","url":"https://api.github.com/users/ostcar","html_url":"https://github.com/ostcar","followers_url":"https://api.github.com/users/ostcar/followers","following_url":"https://api.github.com/users/ostcar/following{/other_user}","gists_url":"https://api.github.com/users/ostcar/gists{/gist_id}","starred_url":"https://api.github.com/users/ostcar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ostcar/subscriptions","organizations_url":"https://api.github.com/users/ostcar/orgs","repos_url":"https://api.github.com/users/ostcar/repos","events_url":"https://api.github.com/users/ostcar/events{/privacy}","received_events_url":"https://api.github.com/users/ostcar/received_events","type":"User","site_admin":false},"open_issues":118,"closed_issues":278,"state":"open","created_at":"2015-09-04T21:00:55Z","updated_at":"2016-10-10T19:26:24Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/2489/commits","review_comments_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/2489/comments","review_comment_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/2489/comments","statuses_url":"https://api.github.com/repos/OpenSlides/OpenSlides/statuses/c6dcef18f733d2efc1039e0ed875a724f4ea4418","head":{"label":"matakuka:issue2211-multiprojector","ref":"issue2211-multiprojector","sha":"c6dcef18f733d2efc1039e0ed875a724f4ea4418","user":{"login":"matakuka","id":11648129,"avatar_url":"https://avatars.githubusercontent.com/u/11648129?v=3","gravatar_id":"","url":"https://api.github.com/users/matakuka","html_url":"https://github.com/matakuka","followers_url":"https://api.github.com/users/matakuka/followers","following_url":"https://api.github.com/users/matakuka/following{/other_user}","gists_url":"https://api.github.com/users/matakuka/gists{/gist_id}","starred_url":"https://api.github.com/users/matakuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matakuka/subscriptions","organizations_url":"https://api.github.com/users/matakuka/orgs","repos_url":"https://api.github.com/users/matakuka/repos","events_url":"https://api.github.com/users/matakuka/events{/privacy}","received_events_url":"https://api.github.com/users/matakuka/received_events","type":"User","site_admin":false},"repo":{"id":60561590,"name":"OpenSlides","full_name":"matakuka/OpenSlides","owner":{"login":"matakuka","id":11648129,"avatar_url":"https://avatars.githubusercontent.com/u/11648129?v=3","gravatar_id":"","url":"https://api.github.com/users/matakuka","html_url":"https://github.com/matakuka","followers_url":"https://api.github.com/users/matakuka/followers","following_url":"https://api.github.com/users/matakuka/following{/other_user}","gists_url":"https://api.github.com/users/matakuka/gists{/gist_id}","starred_url":"https://api.github.com/users/matakuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matakuka/subscriptions","organizations_url":"https://api.github.com/users/matakuka/orgs","repos_url":"https://api.github.com/users/matakuka/repos","events_url":"https://api.github.com/users/matakuka/events{/privacy}","received_events_url":"https://api.github.com/users/matakuka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matakuka/OpenSlides","description":"Presentation and assembly system","fork":true,"url":"https://api.github.com/repos/matakuka/OpenSlides","forks_url":"https://api.github.com/repos/matakuka/OpenSlides/forks","keys_url":"https://api.github.com/repos/matakuka/OpenSlides/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matakuka/OpenSlides/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matakuka/OpenSlides/teams","hooks_url":"https://api.github.com/repos/matakuka/OpenSlides/hooks","issue_events_url":"https://api.github.com/repos/matakuka/OpenSlides/issues/events{/number}","events_url":"https://api.github.com/repos/matakuka/OpenSlides/events","assignees_url":"https://api.github.com/repos/matakuka/OpenSlides/assignees{/user}","branches_url":"https://api.github.com/repos/matakuka/OpenSlides/branches{/branch}","tags_url":"https://api.github.com/repos/matakuka/OpenSlides/tags","blobs_url":"https://api.github.com/repos/matakuka/OpenSlides/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matakuka/OpenSlides/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matakuka/OpenSlides/git/refs{/sha}","trees_url":"https://api.github.com/repos/matakuka/OpenSlides/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matakuka/OpenSlides/statuses/{sha}","languages_url":"https://api.github.com/repos/matakuka/OpenSlides/languages","stargazers_url":"https://api.github.com/repos/matakuka/OpenSlides/stargazers","contributors_url":"https://api.github.com/repos/matakuka/OpenSlides/contributors","subscribers_url":"https://api.github.com/repos/matakuka/OpenSlides/subscribers","subscription_url":"https://api.github.com/repos/matakuka/OpenSlides/subscription","commits_url":"https://api.github.com/repos/matakuka/OpenSlides/commits{/sha}","git_commits_url":"https://api.github.com/repos/matakuka/OpenSlides/git/commits{/sha}","comments_url":"https://api.github.com/repos/matakuka/OpenSlides/comments{/number}","issue_comment_url":"https://api.github.com/repos/matakuka/OpenSlides/issues/comments{/number}","contents_url":"https://api.github.com/repos/matakuka/OpenSlides/contents/{+path}","compare_url":"https://api.github.com/repos/matakuka/OpenSlides/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matakuka/OpenSlides/merges","archive_url":"https://api.github.com/repos/matakuka/OpenSlides/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matakuka/OpenSlides/downloads","issues_url":"https://api.github.com/repos/matakuka/OpenSlides/issues{/number}","pulls_url":"https://api.github.com/repos/matakuka/OpenSlides/pulls{/number}","milestones_url":"https://api.github.com/repos/matakuka/OpenSlides/milestones{/number}","notifications_url":"https://api.github.com/repos/matakuka/OpenSlides/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matakuka/OpenSlides/labels{/name}","releases_url":"https://api.github.com/repos/matakuka/OpenSlides/releases{/id}","deployments_url":"https://api.github.com/repos/matakuka/OpenSlides/deployments","created_at":"2016-06-06T21:19:14Z","updated_at":"2016-06-06T21:19:15Z","pushed_at":"2016-10-11T09:02:02Z","git_url":"git://github.com/matakuka/OpenSlides.git","ssh_url":"git@github.com:matakuka/OpenSlides.git","clone_url":"https://github.com/matakuka/OpenSlides.git","svn_url":"https://github.com/matakuka/OpenSlides","homepage":"http://openslides.org","size":38549,"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":"OpenSlides:master","ref":"master","sha":"1b218843efaf1cc8bf7ee9cc0ce2de273503b4f5","user":{"login":"OpenSlides","id":2055730,"avatar_url":"https://avatars.githubusercontent.com/u/2055730?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenSlides","html_url":"https://github.com/OpenSlides","followers_url":"https://api.github.com/users/OpenSlides/followers","following_url":"https://api.github.com/users/OpenSlides/following{/other_user}","gists_url":"https://api.github.com/users/OpenSlides/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenSlides/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenSlides/subscriptions","organizations_url":"https://api.github.com/users/OpenSlides/orgs","repos_url":"https://api.github.com/users/OpenSlides/repos","events_url":"https://api.github.com/users/OpenSlides/events{/privacy}","received_events_url":"https://api.github.com/users/OpenSlides/received_events","type":"Organization","site_admin":false},"repo":{"id":5250779,"name":"OpenSlides","full_name":"OpenSlides/OpenSlides","owner":{"login":"OpenSlides","id":2055730,"avatar_url":"https://avatars.githubusercontent.com/u/2055730?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenSlides","html_url":"https://github.com/OpenSlides","followers_url":"https://api.github.com/users/OpenSlides/followers","following_url":"https://api.github.com/users/OpenSlides/following{/other_user}","gists_url":"https://api.github.com/users/OpenSlides/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenSlides/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenSlides/subscriptions","organizations_url":"https://api.github.com/users/OpenSlides/orgs","repos_url":"https://api.github.com/users/OpenSlides/repos","events_url":"https://api.github.com/users/OpenSlides/events{/privacy}","received_events_url":"https://api.github.com/users/OpenSlides/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenSlides/OpenSlides","description":"Presentation and assembly system","fork":false,"url":"https://api.github.com/repos/OpenSlides/OpenSlides","forks_url":"https://api.github.com/repos/OpenSlides/OpenSlides/forks","keys_url":"https://api.github.com/repos/OpenSlides/OpenSlides/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenSlides/OpenSlides/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenSlides/OpenSlides/teams","hooks_url":"https://api.github.com/repos/OpenSlides/OpenSlides/hooks","issue_events_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/events{/number}","events_url":"https://api.github.com/repos/OpenSlides/OpenSlides/events","assignees_url":"https://api.github.com/repos/OpenSlides/OpenSlides/assignees{/user}","branches_url":"https://api.github.com/repos/OpenSlides/OpenSlides/branches{/branch}","tags_url":"https://api.github.com/repos/OpenSlides/OpenSlides/tags","blobs_url":"https://api.github.com/repos/OpenSlides/OpenSlides/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenSlides/OpenSlides/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenSlides/OpenSlides/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenSlides/OpenSlides/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenSlides/OpenSlides/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenSlides/OpenSlides/languages","stargazers_url":"https://api.github.com/repos/OpenSlides/OpenSlides/stargazers","contributors_url":"https://api.github.com/repos/OpenSlides/OpenSlides/contributors","subscribers_url":"https://api.github.com/repos/OpenSlides/OpenSlides/subscribers","subscription_url":"https://api.github.com/repos/OpenSlides/OpenSlides/subscription","commits_url":"https://api.github.com/repos/OpenSlides/OpenSlides/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenSlides/OpenSlides/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenSlides/OpenSlides/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenSlides/OpenSlides/contents/{+path}","compare_url":"https://api.github.com/repos/OpenSlides/OpenSlides/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenSlides/OpenSlides/merges","archive_url":"https://api.github.com/repos/OpenSlides/OpenSlides/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenSlides/OpenSlides/downloads","issues_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues{/number}","pulls_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenSlides/OpenSlides/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenSlides/OpenSlides/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenSlides/OpenSlides/labels{/name}","releases_url":"https://api.github.com/repos/OpenSlides/OpenSlides/releases{/id}","deployments_url":"https://api.github.com/repos/OpenSlides/OpenSlides/deployments","created_at":"2012-07-31T20:04:39Z","updated_at":"2016-10-01T04:54:55Z","pushed_at":"2016-10-11T09:02:02Z","git_url":"git://github.com/OpenSlides/OpenSlides.git","ssh_url":"git@github.com:OpenSlides/OpenSlides.git","clone_url":"https://github.com/OpenSlides/OpenSlides.git","svn_url":"https://github.com/OpenSlides/OpenSlides","homepage":"http://openslides.org","size":39623,"stargazers_count":123,"watchers_count":123,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":48,"mirror_url":null,"open_issues_count":181,"forks":48,"open_issues":181,"watchers":123,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/2489"},"html":{"href":"https://github.com/OpenSlides/OpenSlides/pull/2489"},"issue":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/2489"},"comments":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/2489/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/2489/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/2489/commits"},"statuses":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/statuses/c6dcef18f733d2efc1039e0ed875a724f4ea4418"}}}}
{"actor":{"display_login":"matakuka"}}