{"action":"created","comment":{"url":"https://api.github.com/repos/geometalab/osmaxx-frontend/pulls/comments/65052116","id":65052116,"diff_hunk":"@@ -67,3 +67,23 @@ def parse_poly(lines):\n             in_ring = True\n \n     return MultiPolygon(*(Polygon(*polycoords) for polycoords in coords), srid=4326)\n+\n+\n+def get_polyfile_names_to_file_mapping():\n+    \"\"\"\n+    generates names of all polyfiles inside the POLYFILE_LOCATION path.\n+\n+    Returns: a mapping of polyfile names to polyfile path\n+    \"\"\"\n+    from osmaxx.excerptexport._settings import POLYFILE_LOCATION\n+    polyfile_name_to_file_path_mapping = {}\n+    for root, dirs, files in os.walk(POLYFILE_LOCATION):\n+        subfolder_name = root.replace(POLYFILE_LOCATION, '').replace('/', '')\n+        for possible_polyfile in files:\n+            name_parts = [] if subfolder_name == '' else [subfolder_name]\n+            if _is_polyfile(possible_polyfile):","path":"osmaxx/utils/polyfile_helpers.py","position":18,"original_position":18,"commit_id":"57edd67779fd77ce67fe2b73072d06ee0be9f0ad","original_commit_id":"57edd67779fd77ce67fe2b73072d06ee0be9f0ad","user":{"login":"das-g","id":97746,"avatar_url":"https://avatars.githubusercontent.com/u/97746?v=3","gravatar_id":"","url":"https://api.github.com/users/das-g","html_url":"https://github.com/das-g","followers_url":"https://api.github.com/users/das-g/followers","following_url":"https://api.github.com/users/das-g/following{/other_user}","gists_url":"https://api.github.com/users/das-g/gists{/gist_id}","starred_url":"https://api.github.com/users/das-g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/das-g/subscriptions","organizations_url":"https://api.github.com/users/das-g/orgs","repos_url":"https://api.github.com/users/das-g/repos","events_url":"https://api.github.com/users/das-g/events{/privacy}","received_events_url":"https://api.github.com/users/das-g/received_events","type":"User","site_admin":false},"body":"`name_parts` is only used inside the `if` clause, so maybe define it there.","created_at":"2016-05-30T10:13:48Z","updated_at":"2016-05-30T10:13:48Z","html_url":"https://github.com/geometalab/osmaxx-frontend/pull/518#discussion_r65052116","pull_request_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/pulls/518","_links":{"self":{"href":"https://api.github.com/repos/geometalab/osmaxx-frontend/pulls/comments/65052116"},"html":{"href":"https://github.com/geometalab/osmaxx-frontend/pull/518#discussion_r65052116"},"pull_request":{"href":"https://api.github.com/repos/geometalab/osmaxx-frontend/pulls/518"}}},"pull_request":{"url":"https://api.github.com/repos/geometalab/osmaxx-frontend/pulls/518","id":71811018,"html_url":"https://github.com/geometalab/osmaxx-frontend/pull/518","diff_url":"https://github.com/geometalab/osmaxx-frontend/pull/518.diff","patch_url":"https://github.com/geometalab/osmaxx-frontend/pull/518.patch","issue_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/issues/518","number":518,"state":"open","locked":false,"title":"Feature/splitted large countries","user":{"login":"hixi","id":97119,"avatar_url":"https://avatars.githubusercontent.com/u/97119?v=3","gravatar_id":"","url":"https://api.github.com/users/hixi","html_url":"https://github.com/hixi","followers_url":"https://api.github.com/users/hixi/followers","following_url":"https://api.github.com/users/hixi/following{/other_user}","gists_url":"https://api.github.com/users/hixi/gists{/gist_id}","starred_url":"https://api.github.com/users/hixi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hixi/subscriptions","organizations_url":"https://api.github.com/users/hixi/orgs","repos_url":"https://api.github.com/users/hixi/repos","events_url":"https://api.github.com/users/hixi/events{/privacy}","received_events_url":"https://api.github.com/users/hixi/received_events","type":"User","site_admin":false},"body":"Reviewed by:\r\n- [ ] @das-g \r\n\r\nCloses #517","created_at":"2016-05-28T20:29:31Z","updated_at":"2016-05-30T10:13:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"97f6bc0fb6e9fffd5315087436756c6ca7130413","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/pulls/518/commits","review_comments_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/pulls/518/comments","review_comment_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/issues/518/comments","statuses_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/statuses/57edd67779fd77ce67fe2b73072d06ee0be9f0ad","head":{"label":"geometalab:feature/splitted_large_countries","ref":"feature/splitted_large_countries","sha":"57edd67779fd77ce67fe2b73072d06ee0be9f0ad","user":{"login":"geometalab","id":8266374,"avatar_url":"https://avatars.githubusercontent.com/u/8266374?v=3","gravatar_id":"","url":"https://api.github.com/users/geometalab","html_url":"https://github.com/geometalab","followers_url":"https://api.github.com/users/geometalab/followers","following_url":"https://api.github.com/users/geometalab/following{/other_user}","gists_url":"https://api.github.com/users/geometalab/gists{/gist_id}","starred_url":"https://api.github.com/users/geometalab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geometalab/subscriptions","organizations_url":"https://api.github.com/users/geometalab/orgs","repos_url":"https://api.github.com/users/geometalab/repos","events_url":"https://api.github.com/users/geometalab/events{/privacy}","received_events_url":"https://api.github.com/users/geometalab/received_events","type":"Organization","site_admin":false},"repo":{"id":28986110,"name":"osmaxx-frontend","full_name":"geometalab/osmaxx-frontend","owner":{"login":"geometalab","id":8266374,"avatar_url":"https://avatars.githubusercontent.com/u/8266374?v=3","gravatar_id":"","url":"https://api.github.com/users/geometalab","html_url":"https://github.com/geometalab","followers_url":"https://api.github.com/users/geometalab/followers","following_url":"https://api.github.com/users/geometalab/following{/other_user}","gists_url":"https://api.github.com/users/geometalab/gists{/gist_id}","starred_url":"https://api.github.com/users/geometalab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geometalab/subscriptions","organizations_url":"https://api.github.com/users/geometalab/orgs","repos_url":"https://api.github.com/users/geometalab/repos","events_url":"https://api.github.com/users/geometalab/events{/privacy}","received_events_url":"https://api.github.com/users/geometalab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/geometalab/osmaxx-frontend","description":"Django-based web frontend for Osmaxx project","fork":false,"url":"https://api.github.com/repos/geometalab/osmaxx-frontend","forks_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/forks","keys_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/teams","hooks_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/hooks","issue_events_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/events","assignees_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/tags","blobs_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/languages","stargazers_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/stargazers","contributors_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/contributors","subscribers_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/subscribers","subscription_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/subscription","commits_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/merges","archive_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/downloads","issues_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/labels{/name}","releases_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/deployments","created_at":"2015-01-08T21:05:34Z","updated_at":"2016-05-11T09:17:12Z","pushed_at":"2016-05-30T09:54:40Z","git_url":"git://github.com/geometalab/osmaxx-frontend.git","ssh_url":"git@github.com:geometalab/osmaxx-frontend.git","clone_url":"https://github.com/geometalab/osmaxx-frontend.git","svn_url":"https://github.com/geometalab/osmaxx-frontend","homepage":"http://osmaxx.hsr.ch/","size":75763,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":48,"forks":0,"open_issues":48,"watchers":2,"default_branch":"develop"}},"base":{"label":"geometalab:develop","ref":"develop","sha":"86fb3ff3fbb305774f47e1ab226418d614f42708","user":{"login":"geometalab","id":8266374,"avatar_url":"https://avatars.githubusercontent.com/u/8266374?v=3","gravatar_id":"","url":"https://api.github.com/users/geometalab","html_url":"https://github.com/geometalab","followers_url":"https://api.github.com/users/geometalab/followers","following_url":"https://api.github.com/users/geometalab/following{/other_user}","gists_url":"https://api.github.com/users/geometalab/gists{/gist_id}","starred_url":"https://api.github.com/users/geometalab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geometalab/subscriptions","organizations_url":"https://api.github.com/users/geometalab/orgs","repos_url":"https://api.github.com/users/geometalab/repos","events_url":"https://api.github.com/users/geometalab/events{/privacy}","received_events_url":"https://api.github.com/users/geometalab/received_events","type":"Organization","site_admin":false},"repo":{"id":28986110,"name":"osmaxx-frontend","full_name":"geometalab/osmaxx-frontend","owner":{"login":"geometalab","id":8266374,"avatar_url":"https://avatars.githubusercontent.com/u/8266374?v=3","gravatar_id":"","url":"https://api.github.com/users/geometalab","html_url":"https://github.com/geometalab","followers_url":"https://api.github.com/users/geometalab/followers","following_url":"https://api.github.com/users/geometalab/following{/other_user}","gists_url":"https://api.github.com/users/geometalab/gists{/gist_id}","starred_url":"https://api.github.com/users/geometalab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geometalab/subscriptions","organizations_url":"https://api.github.com/users/geometalab/orgs","repos_url":"https://api.github.com/users/geometalab/repos","events_url":"https://api.github.com/users/geometalab/events{/privacy}","received_events_url":"https://api.github.com/users/geometalab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/geometalab/osmaxx-frontend","description":"Django-based web frontend for Osmaxx project","fork":false,"url":"https://api.github.com/repos/geometalab/osmaxx-frontend","forks_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/forks","keys_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/teams","hooks_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/hooks","issue_events_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/events","assignees_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/tags","blobs_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/languages","stargazers_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/stargazers","contributors_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/contributors","subscribers_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/subscribers","subscription_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/subscription","commits_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/merges","archive_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/downloads","issues_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/labels{/name}","releases_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/geometalab/osmaxx-frontend/deployments","created_at":"2015-01-08T21:05:34Z","updated_at":"2016-05-11T09:17:12Z","pushed_at":"2016-05-30T09:54:40Z","git_url":"git://github.com/geometalab/osmaxx-frontend.git","ssh_url":"git@github.com:geometalab/osmaxx-frontend.git","clone_url":"https://github.com/geometalab/osmaxx-frontend.git","svn_url":"https://github.com/geometalab/osmaxx-frontend","homepage":"http://osmaxx.hsr.ch/","size":75763,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":48,"forks":0,"open_issues":48,"watchers":2,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/geometalab/osmaxx-frontend/pulls/518"},"html":{"href":"https://github.com/geometalab/osmaxx-frontend/pull/518"},"issue":{"href":"https://api.github.com/repos/geometalab/osmaxx-frontend/issues/518"},"comments":{"href":"https://api.github.com/repos/geometalab/osmaxx-frontend/issues/518/comments"},"review_comments":{"href":"https://api.github.com/repos/geometalab/osmaxx-frontend/pulls/518/comments"},"review_comment":{"href":"https://api.github.com/repos/geometalab/osmaxx-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/geometalab/osmaxx-frontend/pulls/518/commits"},"statuses":{"href":"https://api.github.com/repos/geometalab/osmaxx-frontend/statuses/57edd67779fd77ce67fe2b73072d06ee0be9f0ad"}}}}
{"actor":{"display_login":"das-g"}}