{"action":"created","comment":{"url":"https://api.github.com/repos/4teamwork/ftw.news/pulls/comments/59500310","id":59500310,"diff_hunk":"@@ -264,3 +265,34 @@ def test_has_image_class_is_not_set_on_show_lead_image(self, browser):\n             map(lambda news_item: news_item.attrib['class'],\n                 browser.css('.news-item .body'))\n         )\n+\n+    @browsing\n+    def test_news_listing_block_on_homepage(self, browser):\n+        applyProfile(self.portal, 'ftw.news:show-on-homepage')\n+\n+        newsfolder = create(Builder('news folder'))\n+\n+        create(Builder('news')\n+               .within(newsfolder)\n+               .titled(u'News On Homepage')\n+               .having(show_on_homepage=True)\n+               .having(news_date=datetime(2011, 01, 02, 15, 0, 0)))","path":"ftw/news/tests/test_news_listing_block.py","position":23,"original_position":23,"commit_id":"0d8e14be3961dcfd7e6a8195c909566c4edfaa44","original_commit_id":"0d8e14be3961dcfd7e6a8195c909566c4edfaa44","user":{"login":"jone","id":7469,"avatar_url":"https://avatars.githubusercontent.com/u/7469?v=3","gravatar_id":"","url":"https://api.github.com/users/jone","html_url":"https://github.com/jone","followers_url":"https://api.github.com/users/jone/followers","following_url":"https://api.github.com/users/jone/following{/other_user}","gists_url":"https://api.github.com/users/jone/gists{/gist_id}","starred_url":"https://api.github.com/users/jone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jone/subscriptions","organizations_url":"https://api.github.com/users/jone/orgs","repos_url":"https://api.github.com/users/jone/repos","events_url":"https://api.github.com/users/jone/events{/privacy}","received_events_url":"https://api.github.com/users/jone/received_events","type":"User","site_admin":false},"body":"I would remove the prefixing `0`s: they mean that the number is base 8, but actually it should be base 10.\r\n```python\r\n>>> 07\r\n7\r\n>>> 08\r\n  File \"<stdin>\", line 1\r\n    08\r\n     ^\r\nSyntaxError: invalid token\r\n```\r\nThat's why github makes them red 😉 ","created_at":"2016-04-13T06:48:16Z","updated_at":"2016-04-13T06:48:16Z","html_url":"https://github.com/4teamwork/ftw.news/pull/49#discussion_r59500310","pull_request_url":"https://api.github.com/repos/4teamwork/ftw.news/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/4teamwork/ftw.news/pulls/comments/59500310"},"html":{"href":"https://github.com/4teamwork/ftw.news/pull/49#discussion_r59500310"},"pull_request":{"href":"https://api.github.com/repos/4teamwork/ftw.news/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/4teamwork/ftw.news/pulls/49","id":66173415,"html_url":"https://github.com/4teamwork/ftw.news/pull/49","diff_url":"https://github.com/4teamwork/ftw.news/pull/49.diff","patch_url":"https://github.com/4teamwork/ftw.news/pull/49.patch","issue_url":"https://api.github.com/repos/4teamwork/ftw.news/issues/49","number":49,"state":"open","locked":false,"title":"Mark news items to be shown on the homepage.","user":{"login":"mbaechtold","id":28220,"avatar_url":"https://avatars.githubusercontent.com/u/28220?v=3","gravatar_id":"","url":"https://api.github.com/users/mbaechtold","html_url":"https://github.com/mbaechtold","followers_url":"https://api.github.com/users/mbaechtold/followers","following_url":"https://api.github.com/users/mbaechtold/following{/other_user}","gists_url":"https://api.github.com/users/mbaechtold/gists{/gist_id}","starred_url":"https://api.github.com/users/mbaechtold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbaechtold/subscriptions","organizations_url":"https://api.github.com/users/mbaechtold/orgs","repos_url":"https://api.github.com/users/mbaechtold/repos","events_url":"https://api.github.com/users/mbaechtold/events{/privacy}","received_events_url":"https://api.github.com/users/mbaechtold/received_events","type":"User","site_admin":false},"body":"Adds a profile which installs an additional feature allowing to mark news item to be shown on the homepage. A news listing block on the Plone Site can then be configured to render only news items marked accordingly.","created_at":"2016-04-12T15:02:50Z","updated_at":"2016-04-13T06:48:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fad32790c5e9aea7aa1fb3b869bebd8872bb4a3d","assignee":{"login":"jone","id":7469,"avatar_url":"https://avatars.githubusercontent.com/u/7469?v=3","gravatar_id":"","url":"https://api.github.com/users/jone","html_url":"https://github.com/jone","followers_url":"https://api.github.com/users/jone/followers","following_url":"https://api.github.com/users/jone/following{/other_user}","gists_url":"https://api.github.com/users/jone/gists{/gist_id}","starred_url":"https://api.github.com/users/jone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jone/subscriptions","organizations_url":"https://api.github.com/users/jone/orgs","repos_url":"https://api.github.com/users/jone/repos","events_url":"https://api.github.com/users/jone/events{/privacy}","received_events_url":"https://api.github.com/users/jone/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/4teamwork/ftw.news/pulls/49/commits","review_comments_url":"https://api.github.com/repos/4teamwork/ftw.news/pulls/49/comments","review_comment_url":"https://api.github.com/repos/4teamwork/ftw.news/pulls/comments{/number}","comments_url":"https://api.github.com/repos/4teamwork/ftw.news/issues/49/comments","statuses_url":"https://api.github.com/repos/4teamwork/ftw.news/statuses/0d8e14be3961dcfd7e6a8195c909566c4edfaa44","head":{"label":"4teamwork:mba/show-news-on-homepage","ref":"mba/show-news-on-homepage","sha":"0d8e14be3961dcfd7e6a8195c909566c4edfaa44","user":{"login":"4teamwork","id":681821,"avatar_url":"https://avatars.githubusercontent.com/u/681821?v=3","gravatar_id":"","url":"https://api.github.com/users/4teamwork","html_url":"https://github.com/4teamwork","followers_url":"https://api.github.com/users/4teamwork/followers","following_url":"https://api.github.com/users/4teamwork/following{/other_user}","gists_url":"https://api.github.com/users/4teamwork/gists{/gist_id}","starred_url":"https://api.github.com/users/4teamwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4teamwork/subscriptions","organizations_url":"https://api.github.com/users/4teamwork/orgs","repos_url":"https://api.github.com/users/4teamwork/repos","events_url":"https://api.github.com/users/4teamwork/events{/privacy}","received_events_url":"https://api.github.com/users/4teamwork/received_events","type":"Organization","site_admin":false},"repo":{"id":38423498,"name":"ftw.news","full_name":"4teamwork/ftw.news","owner":{"login":"4teamwork","id":681821,"avatar_url":"https://avatars.githubusercontent.com/u/681821?v=3","gravatar_id":"","url":"https://api.github.com/users/4teamwork","html_url":"https://github.com/4teamwork","followers_url":"https://api.github.com/users/4teamwork/followers","following_url":"https://api.github.com/users/4teamwork/following{/other_user}","gists_url":"https://api.github.com/users/4teamwork/gists{/gist_id}","starred_url":"https://api.github.com/users/4teamwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4teamwork/subscriptions","organizations_url":"https://api.github.com/users/4teamwork/orgs","repos_url":"https://api.github.com/users/4teamwork/repos","events_url":"https://api.github.com/users/4teamwork/events{/privacy}","received_events_url":"https://api.github.com/users/4teamwork/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/4teamwork/ftw.news","description":"","fork":false,"url":"https://api.github.com/repos/4teamwork/ftw.news","forks_url":"https://api.github.com/repos/4teamwork/ftw.news/forks","keys_url":"https://api.github.com/repos/4teamwork/ftw.news/keys{/key_id}","collaborators_url":"https://api.github.com/repos/4teamwork/ftw.news/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/4teamwork/ftw.news/teams","hooks_url":"https://api.github.com/repos/4teamwork/ftw.news/hooks","issue_events_url":"https://api.github.com/repos/4teamwork/ftw.news/issues/events{/number}","events_url":"https://api.github.com/repos/4teamwork/ftw.news/events","assignees_url":"https://api.github.com/repos/4teamwork/ftw.news/assignees{/user}","branches_url":"https://api.github.com/repos/4teamwork/ftw.news/branches{/branch}","tags_url":"https://api.github.com/repos/4teamwork/ftw.news/tags","blobs_url":"https://api.github.com/repos/4teamwork/ftw.news/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/4teamwork/ftw.news/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/4teamwork/ftw.news/git/refs{/sha}","trees_url":"https://api.github.com/repos/4teamwork/ftw.news/git/trees{/sha}","statuses_url":"https://api.github.com/repos/4teamwork/ftw.news/statuses/{sha}","languages_url":"https://api.github.com/repos/4teamwork/ftw.news/languages","stargazers_url":"https://api.github.com/repos/4teamwork/ftw.news/stargazers","contributors_url":"https://api.github.com/repos/4teamwork/ftw.news/contributors","subscribers_url":"https://api.github.com/repos/4teamwork/ftw.news/subscribers","subscription_url":"https://api.github.com/repos/4teamwork/ftw.news/subscription","commits_url":"https://api.github.com/repos/4teamwork/ftw.news/commits{/sha}","git_commits_url":"https://api.github.com/repos/4teamwork/ftw.news/git/commits{/sha}","comments_url":"https://api.github.com/repos/4teamwork/ftw.news/comments{/number}","issue_comment_url":"https://api.github.com/repos/4teamwork/ftw.news/issues/comments{/number}","contents_url":"https://api.github.com/repos/4teamwork/ftw.news/contents/{+path}","compare_url":"https://api.github.com/repos/4teamwork/ftw.news/compare/{base}...{head}","merges_url":"https://api.github.com/repos/4teamwork/ftw.news/merges","archive_url":"https://api.github.com/repos/4teamwork/ftw.news/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/4teamwork/ftw.news/downloads","issues_url":"https://api.github.com/repos/4teamwork/ftw.news/issues{/number}","pulls_url":"https://api.github.com/repos/4teamwork/ftw.news/pulls{/number}","milestones_url":"https://api.github.com/repos/4teamwork/ftw.news/milestones{/number}","notifications_url":"https://api.github.com/repos/4teamwork/ftw.news/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/4teamwork/ftw.news/labels{/name}","releases_url":"https://api.github.com/repos/4teamwork/ftw.news/releases{/id}","deployments_url":"https://api.github.com/repos/4teamwork/ftw.news/deployments","created_at":"2015-07-02T09:24:34Z","updated_at":"2016-01-18T06:45:21Z","pushed_at":"2016-04-12T15:02:51Z","git_url":"git://github.com/4teamwork/ftw.news.git","ssh_url":"git@github.com:4teamwork/ftw.news.git","clone_url":"https://github.com/4teamwork/ftw.news.git","svn_url":"https://github.com/4teamwork/ftw.news","homepage":null,"size":225,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"master"}},"base":{"label":"4teamwork:master","ref":"master","sha":"c7cbb52e14e73a52693d5fefbc6d0e5e61c44b63","user":{"login":"4teamwork","id":681821,"avatar_url":"https://avatars.githubusercontent.com/u/681821?v=3","gravatar_id":"","url":"https://api.github.com/users/4teamwork","html_url":"https://github.com/4teamwork","followers_url":"https://api.github.com/users/4teamwork/followers","following_url":"https://api.github.com/users/4teamwork/following{/other_user}","gists_url":"https://api.github.com/users/4teamwork/gists{/gist_id}","starred_url":"https://api.github.com/users/4teamwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4teamwork/subscriptions","organizations_url":"https://api.github.com/users/4teamwork/orgs","repos_url":"https://api.github.com/users/4teamwork/repos","events_url":"https://api.github.com/users/4teamwork/events{/privacy}","received_events_url":"https://api.github.com/users/4teamwork/received_events","type":"Organization","site_admin":false},"repo":{"id":38423498,"name":"ftw.news","full_name":"4teamwork/ftw.news","owner":{"login":"4teamwork","id":681821,"avatar_url":"https://avatars.githubusercontent.com/u/681821?v=3","gravatar_id":"","url":"https://api.github.com/users/4teamwork","html_url":"https://github.com/4teamwork","followers_url":"https://api.github.com/users/4teamwork/followers","following_url":"https://api.github.com/users/4teamwork/following{/other_user}","gists_url":"https://api.github.com/users/4teamwork/gists{/gist_id}","starred_url":"https://api.github.com/users/4teamwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4teamwork/subscriptions","organizations_url":"https://api.github.com/users/4teamwork/orgs","repos_url":"https://api.github.com/users/4teamwork/repos","events_url":"https://api.github.com/users/4teamwork/events{/privacy}","received_events_url":"https://api.github.com/users/4teamwork/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/4teamwork/ftw.news","description":"","fork":false,"url":"https://api.github.com/repos/4teamwork/ftw.news","forks_url":"https://api.github.com/repos/4teamwork/ftw.news/forks","keys_url":"https://api.github.com/repos/4teamwork/ftw.news/keys{/key_id}","collaborators_url":"https://api.github.com/repos/4teamwork/ftw.news/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/4teamwork/ftw.news/teams","hooks_url":"https://api.github.com/repos/4teamwork/ftw.news/hooks","issue_events_url":"https://api.github.com/repos/4teamwork/ftw.news/issues/events{/number}","events_url":"https://api.github.com/repos/4teamwork/ftw.news/events","assignees_url":"https://api.github.com/repos/4teamwork/ftw.news/assignees{/user}","branches_url":"https://api.github.com/repos/4teamwork/ftw.news/branches{/branch}","tags_url":"https://api.github.com/repos/4teamwork/ftw.news/tags","blobs_url":"https://api.github.com/repos/4teamwork/ftw.news/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/4teamwork/ftw.news/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/4teamwork/ftw.news/git/refs{/sha}","trees_url":"https://api.github.com/repos/4teamwork/ftw.news/git/trees{/sha}","statuses_url":"https://api.github.com/repos/4teamwork/ftw.news/statuses/{sha}","languages_url":"https://api.github.com/repos/4teamwork/ftw.news/languages","stargazers_url":"https://api.github.com/repos/4teamwork/ftw.news/stargazers","contributors_url":"https://api.github.com/repos/4teamwork/ftw.news/contributors","subscribers_url":"https://api.github.com/repos/4teamwork/ftw.news/subscribers","subscription_url":"https://api.github.com/repos/4teamwork/ftw.news/subscription","commits_url":"https://api.github.com/repos/4teamwork/ftw.news/commits{/sha}","git_commits_url":"https://api.github.com/repos/4teamwork/ftw.news/git/commits{/sha}","comments_url":"https://api.github.com/repos/4teamwork/ftw.news/comments{/number}","issue_comment_url":"https://api.github.com/repos/4teamwork/ftw.news/issues/comments{/number}","contents_url":"https://api.github.com/repos/4teamwork/ftw.news/contents/{+path}","compare_url":"https://api.github.com/repos/4teamwork/ftw.news/compare/{base}...{head}","merges_url":"https://api.github.com/repos/4teamwork/ftw.news/merges","archive_url":"https://api.github.com/repos/4teamwork/ftw.news/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/4teamwork/ftw.news/downloads","issues_url":"https://api.github.com/repos/4teamwork/ftw.news/issues{/number}","pulls_url":"https://api.github.com/repos/4teamwork/ftw.news/pulls{/number}","milestones_url":"https://api.github.com/repos/4teamwork/ftw.news/milestones{/number}","notifications_url":"https://api.github.com/repos/4teamwork/ftw.news/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/4teamwork/ftw.news/labels{/name}","releases_url":"https://api.github.com/repos/4teamwork/ftw.news/releases{/id}","deployments_url":"https://api.github.com/repos/4teamwork/ftw.news/deployments","created_at":"2015-07-02T09:24:34Z","updated_at":"2016-01-18T06:45:21Z","pushed_at":"2016-04-12T15:02:51Z","git_url":"git://github.com/4teamwork/ftw.news.git","ssh_url":"git@github.com:4teamwork/ftw.news.git","clone_url":"https://github.com/4teamwork/ftw.news.git","svn_url":"https://github.com/4teamwork/ftw.news","homepage":null,"size":225,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/4teamwork/ftw.news/pulls/49"},"html":{"href":"https://github.com/4teamwork/ftw.news/pull/49"},"issue":{"href":"https://api.github.com/repos/4teamwork/ftw.news/issues/49"},"comments":{"href":"https://api.github.com/repos/4teamwork/ftw.news/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/4teamwork/ftw.news/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/4teamwork/ftw.news/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/4teamwork/ftw.news/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/4teamwork/ftw.news/statuses/0d8e14be3961dcfd7e6a8195c909566c4edfaa44"}}}}