{"action":"created","comment":{"url":"https://api.github.com/repos/4teamwork/ftw.file/pulls/comments/36502475","id":36502475,"diff_hunk":"@@ -25,3 +26,90 @@ def redirect_to_download_by_default(context):\n             request.other['disable_border'] = border_was_force_disabled\n         if border_was_force_enabled:\n             request.other['enable_border'] = border_was_force_enabled\n+\n+\n+class FileMetadata(object):\n+    \"\"\"Handles some metadata of an object.\n+\n+    The FileMetadata-object provides some properties and functions\n+    to get different pre-configured metadata of a file-object.\n+    \"\"\"\n+    def __init__(self, context):\n+        self.context = context\n+\n+    @property\n+    def show_author(self):\n+        \"\"\"True when the file author should be displayed.\n+\n+        False: if visitor is anonymous an siteproperty","path":"ftw/file/utils.py","position":24,"original_position":24,"commit_id":"474cee162aac02568c2202f7bc423ad706996674","original_commit_id":"474cee162aac02568c2202f7bc423ad706996674","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":"`anD`","created_at":"2015-08-07T09:08:15Z","updated_at":"2015-08-07T09:08:15Z","html_url":"https://github.com/4teamwork/ftw.file/pull/47#discussion_r36502475","pull_request_url":"https://api.github.com/repos/4teamwork/ftw.file/pulls/47","_links":{"self":{"href":"https://api.github.com/repos/4teamwork/ftw.file/pulls/comments/36502475"},"html":{"href":"https://github.com/4teamwork/ftw.file/pull/47#discussion_r36502475"},"pull_request":{"href":"https://api.github.com/repos/4teamwork/ftw.file/pulls/47"}}},"pull_request":{"url":"https://api.github.com/repos/4teamwork/ftw.file/pulls/47","id":41646875,"html_url":"https://github.com/4teamwork/ftw.file/pull/47","diff_url":"https://github.com/4teamwork/ftw.file/pull/47.diff","patch_url":"https://github.com/4teamwork/ftw.file/pull/47.patch","issue_url":"https://api.github.com/repos/4teamwork/ftw.file/issues/47","number":47,"state":"open","locked":false,"title":"Bumblebee adjustments","user":{"login":"elioschmutz","id":557005,"avatar_url":"https://avatars.githubusercontent.com/u/557005?v=3","gravatar_id":"","url":"https://api.github.com/users/elioschmutz","html_url":"https://github.com/elioschmutz","followers_url":"https://api.github.com/users/elioschmutz/followers","following_url":"https://api.github.com/users/elioschmutz/following{/other_user}","gists_url":"https://api.github.com/users/elioschmutz/gists{/gist_id}","starred_url":"https://api.github.com/users/elioschmutz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elioschmutz/subscriptions","organizations_url":"https://api.github.com/users/elioschmutz/orgs","repos_url":"https://api.github.com/users/elioschmutz/repos","events_url":"https://api.github.com/users/elioschmutz/events{/privacy}","received_events_url":"https://api.github.com/users/elioschmutz/received_events","type":"User","site_admin":false},"body":"@maethu \r\n\r\nAdjustments for the bumblebee-integration","created_at":"2015-08-05T06:26:11Z","updated_at":"2015-08-07T09:08:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1099316ef390c05e4284ec25574f94fb47a0ce5d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/4teamwork/ftw.file/pulls/47/commits","review_comments_url":"https://api.github.com/repos/4teamwork/ftw.file/pulls/47/comments","review_comment_url":"https://api.github.com/repos/4teamwork/ftw.file/pulls/comments{/number}","comments_url":"https://api.github.com/repos/4teamwork/ftw.file/issues/47/comments","statuses_url":"https://api.github.com/repos/4teamwork/ftw.file/statuses/474cee162aac02568c2202f7bc423ad706996674","head":{"label":"4teamwork:bumblebee-adjustments","ref":"bumblebee-adjustments","sha":"474cee162aac02568c2202f7bc423ad706996674","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":2868312,"name":"ftw.file","full_name":"4teamwork/ftw.file","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.file","description":"A file content type for gov usecases","fork":false,"url":"https://api.github.com/repos/4teamwork/ftw.file","forks_url":"https://api.github.com/repos/4teamwork/ftw.file/forks","keys_url":"https://api.github.com/repos/4teamwork/ftw.file/keys{/key_id}","collaborators_url":"https://api.github.com/repos/4teamwork/ftw.file/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/4teamwork/ftw.file/teams","hooks_url":"https://api.github.com/repos/4teamwork/ftw.file/hooks","issue_events_url":"https://api.github.com/repos/4teamwork/ftw.file/issues/events{/number}","events_url":"https://api.github.com/repos/4teamwork/ftw.file/events","assignees_url":"https://api.github.com/repos/4teamwork/ftw.file/assignees{/user}","branches_url":"https://api.github.com/repos/4teamwork/ftw.file/branches{/branch}","tags_url":"https://api.github.com/repos/4teamwork/ftw.file/tags","blobs_url":"https://api.github.com/repos/4teamwork/ftw.file/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/4teamwork/ftw.file/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/4teamwork/ftw.file/git/refs{/sha}","trees_url":"https://api.github.com/repos/4teamwork/ftw.file/git/trees{/sha}","statuses_url":"https://api.github.com/repos/4teamwork/ftw.file/statuses/{sha}","languages_url":"https://api.github.com/repos/4teamwork/ftw.file/languages","stargazers_url":"https://api.github.com/repos/4teamwork/ftw.file/stargazers","contributors_url":"https://api.github.com/repos/4teamwork/ftw.file/contributors","subscribers_url":"https://api.github.com/repos/4teamwork/ftw.file/subscribers","subscription_url":"https://api.github.com/repos/4teamwork/ftw.file/subscription","commits_url":"https://api.github.com/repos/4teamwork/ftw.file/commits{/sha}","git_commits_url":"https://api.github.com/repos/4teamwork/ftw.file/git/commits{/sha}","comments_url":"https://api.github.com/repos/4teamwork/ftw.file/comments{/number}","issue_comment_url":"https://api.github.com/repos/4teamwork/ftw.file/issues/comments{/number}","contents_url":"https://api.github.com/repos/4teamwork/ftw.file/contents/{+path}","compare_url":"https://api.github.com/repos/4teamwork/ftw.file/compare/{base}...{head}","merges_url":"https://api.github.com/repos/4teamwork/ftw.file/merges","archive_url":"https://api.github.com/repos/4teamwork/ftw.file/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/4teamwork/ftw.file/downloads","issues_url":"https://api.github.com/repos/4teamwork/ftw.file/issues{/number}","pulls_url":"https://api.github.com/repos/4teamwork/ftw.file/pulls{/number}","milestones_url":"https://api.github.com/repos/4teamwork/ftw.file/milestones{/number}","notifications_url":"https://api.github.com/repos/4teamwork/ftw.file/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/4teamwork/ftw.file/labels{/name}","releases_url":"https://api.github.com/repos/4teamwork/ftw.file/releases{/id}","created_at":"2011-11-28T16:17:11Z","updated_at":"2015-05-08T10:13:05Z","pushed_at":"2015-08-07T08:11:34Z","git_url":"git://github.com/4teamwork/ftw.file.git","ssh_url":"git@github.com:4teamwork/ftw.file.git","clone_url":"https://github.com/4teamwork/ftw.file.git","svn_url":"https://github.com/4teamwork/ftw.file","homepage":"","size":1400,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":1,"default_branch":"master"}},"base":{"label":"4teamwork:master","ref":"master","sha":"345a2350a8337075d716290c0e2a7ac0432ce872","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":2868312,"name":"ftw.file","full_name":"4teamwork/ftw.file","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.file","description":"A file content type for gov usecases","fork":false,"url":"https://api.github.com/repos/4teamwork/ftw.file","forks_url":"https://api.github.com/repos/4teamwork/ftw.file/forks","keys_url":"https://api.github.com/repos/4teamwork/ftw.file/keys{/key_id}","collaborators_url":"https://api.github.com/repos/4teamwork/ftw.file/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/4teamwork/ftw.file/teams","hooks_url":"https://api.github.com/repos/4teamwork/ftw.file/hooks","issue_events_url":"https://api.github.com/repos/4teamwork/ftw.file/issues/events{/number}","events_url":"https://api.github.com/repos/4teamwork/ftw.file/events","assignees_url":"https://api.github.com/repos/4teamwork/ftw.file/assignees{/user}","branches_url":"https://api.github.com/repos/4teamwork/ftw.file/branches{/branch}","tags_url":"https://api.github.com/repos/4teamwork/ftw.file/tags","blobs_url":"https://api.github.com/repos/4teamwork/ftw.file/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/4teamwork/ftw.file/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/4teamwork/ftw.file/git/refs{/sha}","trees_url":"https://api.github.com/repos/4teamwork/ftw.file/git/trees{/sha}","statuses_url":"https://api.github.com/repos/4teamwork/ftw.file/statuses/{sha}","languages_url":"https://api.github.com/repos/4teamwork/ftw.file/languages","stargazers_url":"https://api.github.com/repos/4teamwork/ftw.file/stargazers","contributors_url":"https://api.github.com/repos/4teamwork/ftw.file/contributors","subscribers_url":"https://api.github.com/repos/4teamwork/ftw.file/subscribers","subscription_url":"https://api.github.com/repos/4teamwork/ftw.file/subscription","commits_url":"https://api.github.com/repos/4teamwork/ftw.file/commits{/sha}","git_commits_url":"https://api.github.com/repos/4teamwork/ftw.file/git/commits{/sha}","comments_url":"https://api.github.com/repos/4teamwork/ftw.file/comments{/number}","issue_comment_url":"https://api.github.com/repos/4teamwork/ftw.file/issues/comments{/number}","contents_url":"https://api.github.com/repos/4teamwork/ftw.file/contents/{+path}","compare_url":"https://api.github.com/repos/4teamwork/ftw.file/compare/{base}...{head}","merges_url":"https://api.github.com/repos/4teamwork/ftw.file/merges","archive_url":"https://api.github.com/repos/4teamwork/ftw.file/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/4teamwork/ftw.file/downloads","issues_url":"https://api.github.com/repos/4teamwork/ftw.file/issues{/number}","pulls_url":"https://api.github.com/repos/4teamwork/ftw.file/pulls{/number}","milestones_url":"https://api.github.com/repos/4teamwork/ftw.file/milestones{/number}","notifications_url":"https://api.github.com/repos/4teamwork/ftw.file/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/4teamwork/ftw.file/labels{/name}","releases_url":"https://api.github.com/repos/4teamwork/ftw.file/releases{/id}","created_at":"2011-11-28T16:17:11Z","updated_at":"2015-05-08T10:13:05Z","pushed_at":"2015-08-07T08:11:34Z","git_url":"git://github.com/4teamwork/ftw.file.git","ssh_url":"git@github.com:4teamwork/ftw.file.git","clone_url":"https://github.com/4teamwork/ftw.file.git","svn_url":"https://github.com/4teamwork/ftw.file","homepage":"","size":1400,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/4teamwork/ftw.file/pulls/47"},"html":{"href":"https://github.com/4teamwork/ftw.file/pull/47"},"issue":{"href":"https://api.github.com/repos/4teamwork/ftw.file/issues/47"},"comments":{"href":"https://api.github.com/repos/4teamwork/ftw.file/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/4teamwork/ftw.file/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/4teamwork/ftw.file/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/4teamwork/ftw.file/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/4teamwork/ftw.file/statuses/474cee162aac02568c2202f7bc423ad706996674"}}}}