{"action":"created","comment":{"url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/pulls/comments/37746086","id":37746086,"diff_hunk":"@@ -36,11 +36,55 @@ def users_view():\n     \"\"\"\n     Users listing for dropdown.\n     \"\"\"\n-    data = get_data()\n-    return [\n-        {'user_id': i, 'name': 'User {0}'.format(str(i))}\n-        for i in data.keys()\n-    ]\n+    try:\n+        root = etree.parse(app.config['DATA_XML'])\n+        xml_file = root.getroot().find('users')\n+        users = [\n+            {\n+                'user_id': int(user.get('id')),\n+                'name': user.find('name').text,\n+                'avatar': user.find('avatar').text\n+            }\n+            for user in xml_file\n+        ]\n+    except IOError:\n+        log.error(","path":"src/presence_analyzer/views.py","position":35,"original_position":35,"commit_id":"381ae753ccc3f12963b1030b5ebf9f45c12d9195","original_commit_id":"381ae753ccc3f12963b1030b5ebf9f45c12d9195","user":{"login":"mjelonek92","id":7791528,"avatar_url":"https://avatars.githubusercontent.com/u/7791528?v=3","gravatar_id":"","url":"https://api.github.com/users/mjelonek92","html_url":"https://github.com/mjelonek92","followers_url":"https://api.github.com/users/mjelonek92/followers","following_url":"https://api.github.com/users/mjelonek92/following{/other_user}","gists_url":"https://api.github.com/users/mjelonek92/gists{/gist_id}","starred_url":"https://api.github.com/users/mjelonek92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjelonek92/subscriptions","organizations_url":"https://api.github.com/users/mjelonek92/orgs","repos_url":"https://api.github.com/users/mjelonek92/repos","events_url":"https://api.github.com/users/mjelonek92/events{/privacy}","received_events_url":"https://api.github.com/users/mjelonek92/received_events","type":"User","site_admin":false},"body":"`log.exception` preferably.","created_at":"2015-08-24T12:39:27Z","updated_at":"2015-08-24T12:39:27Z","html_url":"https://github.com/stxnext-kindergarten/presence-analyzer-gderdak/pull/7#discussion_r37746086","pull_request_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/pulls/comments/37746086"},"html":{"href":"https://github.com/stxnext-kindergarten/presence-analyzer-gderdak/pull/7#discussion_r37746086"},"pull_request":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/pulls/7","id":43169147,"html_url":"https://github.com/stxnext-kindergarten/presence-analyzer-gderdak/pull/7","diff_url":"https://github.com/stxnext-kindergarten/presence-analyzer-gderdak/pull/7.diff","patch_url":"https://github.com/stxnext-kindergarten/presence-analyzer-gderdak/pull/7.patch","issue_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/issues/7","number":7,"state":"open","locked":false,"title":"[6148] Implemented avatars and updating xml file.","user":{"login":"GrzegorzDerdak","id":9867839,"avatar_url":"https://avatars.githubusercontent.com/u/9867839?v=3","gravatar_id":"","url":"https://api.github.com/users/GrzegorzDerdak","html_url":"https://github.com/GrzegorzDerdak","followers_url":"https://api.github.com/users/GrzegorzDerdak/followers","following_url":"https://api.github.com/users/GrzegorzDerdak/following{/other_user}","gists_url":"https://api.github.com/users/GrzegorzDerdak/gists{/gist_id}","starred_url":"https://api.github.com/users/GrzegorzDerdak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrzegorzDerdak/subscriptions","organizations_url":"https://api.github.com/users/GrzegorzDerdak/orgs","repos_url":"https://api.github.com/users/GrzegorzDerdak/repos","events_url":"https://api.github.com/users/GrzegorzDerdak/events{/privacy}","received_events_url":"https://api.github.com/users/GrzegorzDerdak/received_events","type":"User","site_admin":false},"body":"Implemented avatars and updating xml file.\r\nBugzilla:\r\nhttps://bugzilla.stxnext.pl/show_bug.cgi?id=6148\r\nGist:\r\nhttps://gist.github.com/GrzegorzDerdak/f89cfe96d0a9156edfa4","created_at":"2015-08-24T12:31:04Z","updated_at":"2015-08-24T12:39:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f34330dc09d912b5d2909ff6710647d85bfed4ae","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/pulls/7/commits","review_comments_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/pulls/7/comments","review_comment_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/issues/7/comments","statuses_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/statuses/381ae753ccc3f12963b1030b5ebf9f45c12d9195","head":{"label":"GrzegorzDerdak:bug_6148","ref":"bug_6148","sha":"381ae753ccc3f12963b1030b5ebf9f45c12d9195","user":{"login":"GrzegorzDerdak","id":9867839,"avatar_url":"https://avatars.githubusercontent.com/u/9867839?v=3","gravatar_id":"","url":"https://api.github.com/users/GrzegorzDerdak","html_url":"https://github.com/GrzegorzDerdak","followers_url":"https://api.github.com/users/GrzegorzDerdak/followers","following_url":"https://api.github.com/users/GrzegorzDerdak/following{/other_user}","gists_url":"https://api.github.com/users/GrzegorzDerdak/gists{/gist_id}","starred_url":"https://api.github.com/users/GrzegorzDerdak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrzegorzDerdak/subscriptions","organizations_url":"https://api.github.com/users/GrzegorzDerdak/orgs","repos_url":"https://api.github.com/users/GrzegorzDerdak/repos","events_url":"https://api.github.com/users/GrzegorzDerdak/events{/privacy}","received_events_url":"https://api.github.com/users/GrzegorzDerdak/received_events","type":"User","site_admin":false},"repo":{"id":40182618,"name":"presence-analyzer-gderdak","full_name":"GrzegorzDerdak/presence-analyzer-gderdak","owner":{"login":"GrzegorzDerdak","id":9867839,"avatar_url":"https://avatars.githubusercontent.com/u/9867839?v=3","gravatar_id":"","url":"https://api.github.com/users/GrzegorzDerdak","html_url":"https://github.com/GrzegorzDerdak","followers_url":"https://api.github.com/users/GrzegorzDerdak/followers","following_url":"https://api.github.com/users/GrzegorzDerdak/following{/other_user}","gists_url":"https://api.github.com/users/GrzegorzDerdak/gists{/gist_id}","starred_url":"https://api.github.com/users/GrzegorzDerdak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrzegorzDerdak/subscriptions","organizations_url":"https://api.github.com/users/GrzegorzDerdak/orgs","repos_url":"https://api.github.com/users/GrzegorzDerdak/repos","events_url":"https://api.github.com/users/GrzegorzDerdak/events{/privacy}","received_events_url":"https://api.github.com/users/GrzegorzDerdak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GrzegorzDerdak/presence-analyzer-gderdak","description":"","fork":true,"url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak","forks_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/forks","keys_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/teams","hooks_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/hooks","issue_events_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/issues/events{/number}","events_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/events","assignees_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/assignees{/user}","branches_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/branches{/branch}","tags_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/tags","blobs_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/git/refs{/sha}","trees_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/statuses/{sha}","languages_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/languages","stargazers_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/stargazers","contributors_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/contributors","subscribers_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/subscribers","subscription_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/subscription","commits_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/commits{/sha}","git_commits_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/git/commits{/sha}","comments_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/comments{/number}","issue_comment_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/issues/comments{/number}","contents_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/contents/{+path}","compare_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/merges","archive_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/downloads","issues_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/issues{/number}","pulls_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/pulls{/number}","milestones_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/milestones{/number}","notifications_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/labels{/name}","releases_url":"https://api.github.com/repos/GrzegorzDerdak/presence-analyzer-gderdak/releases{/id}","created_at":"2015-08-04T12:12:09Z","updated_at":"2015-08-04T12:12:10Z","pushed_at":"2015-08-24T12:34:00Z","git_url":"git://github.com/GrzegorzDerdak/presence-analyzer-gderdak.git","ssh_url":"git@github.com:GrzegorzDerdak/presence-analyzer-gderdak.git","clone_url":"https://github.com/GrzegorzDerdak/presence-analyzer-gderdak.git","svn_url":"https://github.com/GrzegorzDerdak/presence-analyzer-gderdak","homepage":null,"size":304,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"stxnext-kindergarten:master","ref":"master","sha":"848859f36b9d3333bec3a6dc3a7c615cd09d6654","user":{"login":"stxnext-kindergarten","id":5575308,"avatar_url":"https://avatars.githubusercontent.com/u/5575308?v=3","gravatar_id":"","url":"https://api.github.com/users/stxnext-kindergarten","html_url":"https://github.com/stxnext-kindergarten","followers_url":"https://api.github.com/users/stxnext-kindergarten/followers","following_url":"https://api.github.com/users/stxnext-kindergarten/following{/other_user}","gists_url":"https://api.github.com/users/stxnext-kindergarten/gists{/gist_id}","starred_url":"https://api.github.com/users/stxnext-kindergarten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stxnext-kindergarten/subscriptions","organizations_url":"https://api.github.com/users/stxnext-kindergarten/orgs","repos_url":"https://api.github.com/users/stxnext-kindergarten/repos","events_url":"https://api.github.com/users/stxnext-kindergarten/events{/privacy}","received_events_url":"https://api.github.com/users/stxnext-kindergarten/received_events","type":"Organization","site_admin":false},"repo":{"id":40169403,"name":"presence-analyzer-gderdak","full_name":"stxnext-kindergarten/presence-analyzer-gderdak","owner":{"login":"stxnext-kindergarten","id":5575308,"avatar_url":"https://avatars.githubusercontent.com/u/5575308?v=3","gravatar_id":"","url":"https://api.github.com/users/stxnext-kindergarten","html_url":"https://github.com/stxnext-kindergarten","followers_url":"https://api.github.com/users/stxnext-kindergarten/followers","following_url":"https://api.github.com/users/stxnext-kindergarten/following{/other_user}","gists_url":"https://api.github.com/users/stxnext-kindergarten/gists{/gist_id}","starred_url":"https://api.github.com/users/stxnext-kindergarten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stxnext-kindergarten/subscriptions","organizations_url":"https://api.github.com/users/stxnext-kindergarten/orgs","repos_url":"https://api.github.com/users/stxnext-kindergarten/repos","events_url":"https://api.github.com/users/stxnext-kindergarten/events{/privacy}","received_events_url":"https://api.github.com/users/stxnext-kindergarten/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stxnext-kindergarten/presence-analyzer-gderdak","description":"","fork":false,"url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak","forks_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/forks","keys_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/teams","hooks_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/hooks","issue_events_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/issues/events{/number}","events_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/events","assignees_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/assignees{/user}","branches_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/branches{/branch}","tags_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/tags","blobs_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/git/refs{/sha}","trees_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/statuses/{sha}","languages_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/languages","stargazers_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/stargazers","contributors_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/contributors","subscribers_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/subscribers","subscription_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/subscription","commits_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/commits{/sha}","git_commits_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/git/commits{/sha}","comments_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/comments{/number}","issue_comment_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/issues/comments{/number}","contents_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/contents/{+path}","compare_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/merges","archive_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/downloads","issues_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/issues{/number}","pulls_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/pulls{/number}","milestones_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/milestones{/number}","notifications_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/labels{/name}","releases_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/releases{/id}","created_at":"2015-08-04T07:18:22Z","updated_at":"2015-08-12T11:47:38Z","pushed_at":"2015-08-24T12:34:00Z","git_url":"git://github.com/stxnext-kindergarten/presence-analyzer-gderdak.git","ssh_url":"git@github.com:stxnext-kindergarten/presence-analyzer-gderdak.git","clone_url":"https://github.com/stxnext-kindergarten/presence-analyzer-gderdak.git","svn_url":"https://github.com/stxnext-kindergarten/presence-analyzer-gderdak","homepage":null,"size":392,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/pulls/7"},"html":{"href":"https://github.com/stxnext-kindergarten/presence-analyzer-gderdak/pull/7"},"issue":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/issues/7"},"comments":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-gderdak/statuses/381ae753ccc3f12963b1030b5ebf9f45c12d9195"}}}}