{"action":"created","comment":{"url":"https://api.github.com/repos/opencivicdata/pupa/pulls/comments/32047790","id":32047790,"diff_hunk":"@@ -5,12 +5,15 @@\n import uuid\n import logging\n import datetime\n+from pprint import PrettyPrinter\n from pupa.exceptions import DuplicateItemError\n-from pupa.utils import get_pseudo_id, utcnow\n+from pupa.utils import get_pseudo_id, combine_dicts, utcnow\n from pupa.utils.topsort import Network\n from opencivicdata.models import LegislativeSession\n from pupa.exceptions import UnresolvedIdError, DataImportError\n \n+pp = PrettyPrinter(indent=4)","path":"pupa/importers/base.py","position":12,"original_position":12,"commit_id":"2a610b7203a9eb3ee74dfc81dfc796abc3502a5a","original_commit_id":"2a610b7203a9eb3ee74dfc81dfc796abc3502a5a","user":{"login":"boblannon","id":1092694,"avatar_url":"https://avatars.githubusercontent.com/u/1092694?v=3","gravatar_id":"","url":"https://api.github.com/users/boblannon","html_url":"https://github.com/boblannon","followers_url":"https://api.github.com/users/boblannon/followers","following_url":"https://api.github.com/users/boblannon/following{/other_user}","gists_url":"https://api.github.com/users/boblannon/gists{/gist_id}","starred_url":"https://api.github.com/users/boblannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boblannon/subscriptions","organizations_url":"https://api.github.com/users/boblannon/orgs","repos_url":"https://api.github.com/users/boblannon/repos","events_url":"https://api.github.com/users/boblannon/events{/privacy}","received_events_url":"https://api.github.com/users/boblannon/received_events","type":"User","site_admin":false},"body":"ah, yeah, probably vestigal of a debug line that was later removed.","created_at":"2015-06-09T18:38:41Z","updated_at":"2015-06-09T18:38:41Z","html_url":"https://github.com/opencivicdata/pupa/pull/170#discussion_r32047790","pull_request_url":"https://api.github.com/repos/opencivicdata/pupa/pulls/170","_links":{"self":{"href":"https://api.github.com/repos/opencivicdata/pupa/pulls/comments/32047790"},"html":{"href":"https://github.com/opencivicdata/pupa/pull/170#discussion_r32047790"},"pull_request":{"href":"https://api.github.com/repos/opencivicdata/pupa/pulls/170"}}},"pull_request":{"url":"https://api.github.com/repos/opencivicdata/pupa/pulls/170","id":34086925,"html_url":"https://github.com/opencivicdata/pupa/pull/170","diff_url":"https://github.com/opencivicdata/pupa/pull/170.diff","patch_url":"https://github.com/opencivicdata/pupa/pull/170.patch","issue_url":"https://api.github.com/repos/opencivicdata/pupa/issues/170","number":170,"state":"open","locked":false,"title":"Adding scrapers and importers for disclosures, as well as some new update logic","user":{"login":"boblannon","id":1092694,"avatar_url":"https://avatars.githubusercontent.com/u/1092694?v=3","gravatar_id":"","url":"https://api.github.com/users/boblannon","html_url":"https://github.com/boblannon","followers_url":"https://api.github.com/users/boblannon/followers","following_url":"https://api.github.com/users/boblannon/following{/other_user}","gists_url":"https://api.github.com/users/boblannon/gists{/gist_id}","starred_url":"https://api.github.com/users/boblannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boblannon/subscriptions","organizations_url":"https://api.github.com/users/boblannon/orgs","repos_url":"https://api.github.com/users/boblannon/repos","events_url":"https://api.github.com/users/boblannon/events{/privacy}","received_events_url":"https://api.github.com/users/boblannon/received_events","type":"User","site_admin":false},"body":"Much of this PR has to do with adding scrapers and importers for the new Disclosure object, but also introduces the `source_identified` field (default `False`), which signals that alternate `get_object` and `resolve_json_id` should be used that take into account the sources of the data.\r\n\r\nsee opencivicdata/python-opencivicdata-django/pull/33","created_at":"2015-04-24T21:16:27Z","updated_at":"2015-06-09T18:38:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4b0d93c29fd35ebad22526dcc1e07b8d0d469321","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/opencivicdata/pupa/pulls/170/commits","review_comments_url":"https://api.github.com/repos/opencivicdata/pupa/pulls/170/comments","review_comment_url":"https://api.github.com/repos/opencivicdata/pupa/pulls/comments{/number}","comments_url":"https://api.github.com/repos/opencivicdata/pupa/issues/170/comments","statuses_url":"https://api.github.com/repos/opencivicdata/pupa/statuses/2a610b7203a9eb3ee74dfc81dfc796abc3502a5a","head":{"label":"influence-usa:master","ref":"master","sha":"2a610b7203a9eb3ee74dfc81dfc796abc3502a5a","user":{"login":"influence-usa","id":6878597,"avatar_url":"https://avatars.githubusercontent.com/u/6878597?v=3","gravatar_id":"","url":"https://api.github.com/users/influence-usa","html_url":"https://github.com/influence-usa","followers_url":"https://api.github.com/users/influence-usa/followers","following_url":"https://api.github.com/users/influence-usa/following{/other_user}","gists_url":"https://api.github.com/users/influence-usa/gists{/gist_id}","starred_url":"https://api.github.com/users/influence-usa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influence-usa/subscriptions","organizations_url":"https://api.github.com/users/influence-usa/orgs","repos_url":"https://api.github.com/users/influence-usa/repos","events_url":"https://api.github.com/users/influence-usa/events{/privacy}","received_events_url":"https://api.github.com/users/influence-usa/received_events","type":"Organization","site_admin":false},"repo":{"id":22528440,"name":"pupa","full_name":"influence-usa/pupa","owner":{"login":"influence-usa","id":6878597,"avatar_url":"https://avatars.githubusercontent.com/u/6878597?v=3","gravatar_id":"","url":"https://api.github.com/users/influence-usa","html_url":"https://github.com/influence-usa","followers_url":"https://api.github.com/users/influence-usa/followers","following_url":"https://api.github.com/users/influence-usa/following{/other_user}","gists_url":"https://api.github.com/users/influence-usa/gists{/gist_id}","starred_url":"https://api.github.com/users/influence-usa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influence-usa/subscriptions","organizations_url":"https://api.github.com/users/influence-usa/orgs","repos_url":"https://api.github.com/users/influence-usa/repos","events_url":"https://api.github.com/users/influence-usa/events{/privacy}","received_events_url":"https://api.github.com/users/influence-usa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/influence-usa/pupa","description":"framework for scraping municipal data","fork":true,"url":"https://api.github.com/repos/influence-usa/pupa","forks_url":"https://api.github.com/repos/influence-usa/pupa/forks","keys_url":"https://api.github.com/repos/influence-usa/pupa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/influence-usa/pupa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/influence-usa/pupa/teams","hooks_url":"https://api.github.com/repos/influence-usa/pupa/hooks","issue_events_url":"https://api.github.com/repos/influence-usa/pupa/issues/events{/number}","events_url":"https://api.github.com/repos/influence-usa/pupa/events","assignees_url":"https://api.github.com/repos/influence-usa/pupa/assignees{/user}","branches_url":"https://api.github.com/repos/influence-usa/pupa/branches{/branch}","tags_url":"https://api.github.com/repos/influence-usa/pupa/tags","blobs_url":"https://api.github.com/repos/influence-usa/pupa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/influence-usa/pupa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/influence-usa/pupa/git/refs{/sha}","trees_url":"https://api.github.com/repos/influence-usa/pupa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/influence-usa/pupa/statuses/{sha}","languages_url":"https://api.github.com/repos/influence-usa/pupa/languages","stargazers_url":"https://api.github.com/repos/influence-usa/pupa/stargazers","contributors_url":"https://api.github.com/repos/influence-usa/pupa/contributors","subscribers_url":"https://api.github.com/repos/influence-usa/pupa/subscribers","subscription_url":"https://api.github.com/repos/influence-usa/pupa/subscription","commits_url":"https://api.github.com/repos/influence-usa/pupa/commits{/sha}","git_commits_url":"https://api.github.com/repos/influence-usa/pupa/git/commits{/sha}","comments_url":"https://api.github.com/repos/influence-usa/pupa/comments{/number}","issue_comment_url":"https://api.github.com/repos/influence-usa/pupa/issues/comments{/number}","contents_url":"https://api.github.com/repos/influence-usa/pupa/contents/{+path}","compare_url":"https://api.github.com/repos/influence-usa/pupa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/influence-usa/pupa/merges","archive_url":"https://api.github.com/repos/influence-usa/pupa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/influence-usa/pupa/downloads","issues_url":"https://api.github.com/repos/influence-usa/pupa/issues{/number}","pulls_url":"https://api.github.com/repos/influence-usa/pupa/pulls{/number}","milestones_url":"https://api.github.com/repos/influence-usa/pupa/milestones{/number}","notifications_url":"https://api.github.com/repos/influence-usa/pupa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/influence-usa/pupa/labels{/name}","releases_url":"https://api.github.com/repos/influence-usa/pupa/releases{/id}","created_at":"2014-08-01T21:04:12Z","updated_at":"2015-04-28T20:49:22Z","pushed_at":"2015-05-21T21:26:15Z","git_url":"git://github.com/influence-usa/pupa.git","ssh_url":"git@github.com:influence-usa/pupa.git","clone_url":"https://github.com/influence-usa/pupa.git","svn_url":"https://github.com/influence-usa/pupa","homepage":"","size":1132,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"opencivicdata:master","ref":"master","sha":"091332afe460ba80549e37b3f69068c10e590942","user":{"login":"opencivicdata","id":603647,"avatar_url":"https://avatars.githubusercontent.com/u/603647?v=3","gravatar_id":"","url":"https://api.github.com/users/opencivicdata","html_url":"https://github.com/opencivicdata","followers_url":"https://api.github.com/users/opencivicdata/followers","following_url":"https://api.github.com/users/opencivicdata/following{/other_user}","gists_url":"https://api.github.com/users/opencivicdata/gists{/gist_id}","starred_url":"https://api.github.com/users/opencivicdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opencivicdata/subscriptions","organizations_url":"https://api.github.com/users/opencivicdata/orgs","repos_url":"https://api.github.com/users/opencivicdata/repos","events_url":"https://api.github.com/users/opencivicdata/events{/privacy}","received_events_url":"https://api.github.com/users/opencivicdata/received_events","type":"Organization","site_admin":false},"repo":{"id":9609180,"name":"pupa","full_name":"opencivicdata/pupa","owner":{"login":"opencivicdata","id":603647,"avatar_url":"https://avatars.githubusercontent.com/u/603647?v=3","gravatar_id":"","url":"https://api.github.com/users/opencivicdata","html_url":"https://github.com/opencivicdata","followers_url":"https://api.github.com/users/opencivicdata/followers","following_url":"https://api.github.com/users/opencivicdata/following{/other_user}","gists_url":"https://api.github.com/users/opencivicdata/gists{/gist_id}","starred_url":"https://api.github.com/users/opencivicdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opencivicdata/subscriptions","organizations_url":"https://api.github.com/users/opencivicdata/orgs","repos_url":"https://api.github.com/users/opencivicdata/repos","events_url":"https://api.github.com/users/opencivicdata/events{/privacy}","received_events_url":"https://api.github.com/users/opencivicdata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opencivicdata/pupa","description":"framework for scraping legislative/government data","fork":false,"url":"https://api.github.com/repos/opencivicdata/pupa","forks_url":"https://api.github.com/repos/opencivicdata/pupa/forks","keys_url":"https://api.github.com/repos/opencivicdata/pupa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opencivicdata/pupa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opencivicdata/pupa/teams","hooks_url":"https://api.github.com/repos/opencivicdata/pupa/hooks","issue_events_url":"https://api.github.com/repos/opencivicdata/pupa/issues/events{/number}","events_url":"https://api.github.com/repos/opencivicdata/pupa/events","assignees_url":"https://api.github.com/repos/opencivicdata/pupa/assignees{/user}","branches_url":"https://api.github.com/repos/opencivicdata/pupa/branches{/branch}","tags_url":"https://api.github.com/repos/opencivicdata/pupa/tags","blobs_url":"https://api.github.com/repos/opencivicdata/pupa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opencivicdata/pupa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opencivicdata/pupa/git/refs{/sha}","trees_url":"https://api.github.com/repos/opencivicdata/pupa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opencivicdata/pupa/statuses/{sha}","languages_url":"https://api.github.com/repos/opencivicdata/pupa/languages","stargazers_url":"https://api.github.com/repos/opencivicdata/pupa/stargazers","contributors_url":"https://api.github.com/repos/opencivicdata/pupa/contributors","subscribers_url":"https://api.github.com/repos/opencivicdata/pupa/subscribers","subscription_url":"https://api.github.com/repos/opencivicdata/pupa/subscription","commits_url":"https://api.github.com/repos/opencivicdata/pupa/commits{/sha}","git_commits_url":"https://api.github.com/repos/opencivicdata/pupa/git/commits{/sha}","comments_url":"https://api.github.com/repos/opencivicdata/pupa/comments{/number}","issue_comment_url":"https://api.github.com/repos/opencivicdata/pupa/issues/comments{/number}","contents_url":"https://api.github.com/repos/opencivicdata/pupa/contents/{+path}","compare_url":"https://api.github.com/repos/opencivicdata/pupa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opencivicdata/pupa/merges","archive_url":"https://api.github.com/repos/opencivicdata/pupa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opencivicdata/pupa/downloads","issues_url":"https://api.github.com/repos/opencivicdata/pupa/issues{/number}","pulls_url":"https://api.github.com/repos/opencivicdata/pupa/pulls{/number}","milestones_url":"https://api.github.com/repos/opencivicdata/pupa/milestones{/number}","notifications_url":"https://api.github.com/repos/opencivicdata/pupa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opencivicdata/pupa/labels{/name}","releases_url":"https://api.github.com/repos/opencivicdata/pupa/releases{/id}","created_at":"2013-04-22T21:19:42Z","updated_at":"2015-05-20T16:28:18Z","pushed_at":"2015-06-05T20:14:36Z","git_url":"git://github.com/opencivicdata/pupa.git","ssh_url":"git@github.com:opencivicdata/pupa.git","clone_url":"https://github.com/opencivicdata/pupa.git","svn_url":"https://github.com/opencivicdata/pupa","homepage":"","size":4034,"stargazers_count":19,"watchers_count":19,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":32,"forks":15,"open_issues":32,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/opencivicdata/pupa/pulls/170"},"html":{"href":"https://github.com/opencivicdata/pupa/pull/170"},"issue":{"href":"https://api.github.com/repos/opencivicdata/pupa/issues/170"},"comments":{"href":"https://api.github.com/repos/opencivicdata/pupa/issues/170/comments"},"review_comments":{"href":"https://api.github.com/repos/opencivicdata/pupa/pulls/170/comments"},"review_comment":{"href":"https://api.github.com/repos/opencivicdata/pupa/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/opencivicdata/pupa/pulls/170/commits"},"statuses":{"href":"https://api.github.com/repos/opencivicdata/pupa/statuses/2a610b7203a9eb3ee74dfc81dfc796abc3502a5a"}}}}