{"action":"created","comment":{"url":"https://api.github.com/repos/fabianvf/scrapi/pulls/comments/26083836","id":26083836,"diff_hunk":"@@ -49,3 +51,99 @@\n     '_id': 'yes! yes! yes!',\n     'count': 0\n }\n+\n+\n+TEST_SCHEMA = update_schema(BASEXMLSCHEMA, {\n+    \"properties\": {\n+        \"title1\": \"//dc:title/node()\",\n+        \"title2\": [\"//dc:title/node()\", lambda x: x.lower()],\n+        \"title3\": [\"//dc:title/node()\", \"//dc:title/node()\", lambda x, y: x + y.lower()]","path":"tests/utils.py","position":18,"original_position":18,"commit_id":"93c8c3a8cf47c18724f1bf07ad5af4840ecb6eea","original_commit_id":"93c8c3a8cf47c18724f1bf07ad5af4840ecb6eea","user":{"login":"JeffSpies","id":512000,"avatar_url":"https://avatars.githubusercontent.com/u/512000?v=3","gravatar_id":"","url":"https://api.github.com/users/JeffSpies","html_url":"https://github.com/JeffSpies","followers_url":"https://api.github.com/users/JeffSpies/followers","following_url":"https://api.github.com/users/JeffSpies/following{/other_user}","gists_url":"https://api.github.com/users/JeffSpies/gists{/gist_id}","starred_url":"https://api.github.com/users/JeffSpies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeffSpies/subscriptions","organizations_url":"https://api.github.com/users/JeffSpies/orgs","repos_url":"https://api.github.com/users/JeffSpies/repos","events_url":"https://api.github.com/users/JeffSpies/events{/privacy}","received_events_url":"https://api.github.com/users/JeffSpies/received_events","type":"User","site_admin":false},"body":"I'd rather these be tuples: ((args, kwargs), callable) where args or kwargs could be none and the first element would not necessarily be a tuple.","created_at":"2015-03-09T22:36:57Z","updated_at":"2015-03-09T22:36:57Z","html_url":"https://github.com/fabianvf/scrapi/pull/102#discussion_r26083836","pull_request_url":"https://api.github.com/repos/fabianvf/scrapi/pulls/102","_links":{"self":{"href":"https://api.github.com/repos/fabianvf/scrapi/pulls/comments/26083836"},"html":{"href":"https://github.com/fabianvf/scrapi/pull/102#discussion_r26083836"},"pull_request":{"href":"https://api.github.com/repos/fabianvf/scrapi/pulls/102"}}},"pull_request":{"url":"https://api.github.com/repos/fabianvf/scrapi/pulls/102","id":30496956,"html_url":"https://github.com/fabianvf/scrapi/pull/102","diff_url":"https://github.com/fabianvf/scrapi/pull/102.diff","patch_url":"https://github.com/fabianvf/scrapi/pull/102.patch","issue_url":"https://api.github.com/repos/fabianvf/scrapi/issues/102","number":102,"state":"open","locked":false,"title":"[Needs discussion] XML to JSON transformations ","user":{"login":"fabianvf","id":2431974,"avatar_url":"https://avatars.githubusercontent.com/u/2431974?v=3","gravatar_id":"","url":"https://api.github.com/users/fabianvf","html_url":"https://github.com/fabianvf","followers_url":"https://api.github.com/users/fabianvf/followers","following_url":"https://api.github.com/users/fabianvf/following{/other_user}","gists_url":"https://api.github.com/users/fabianvf/gists{/gist_id}","starred_url":"https://api.github.com/users/fabianvf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabianvf/subscriptions","organizations_url":"https://api.github.com/users/fabianvf/orgs","repos_url":"https://api.github.com/users/fabianvf/repos","events_url":"https://api.github.com/users/fabianvf/events{/privacy}","received_events_url":"https://api.github.com/users/fabianvf/received_events","type":"User","site_admin":false},"body":"Introduces a transformer class, which can perform XML -> JSON schema conversions. The transformer takes a schema, which is a dictionary of ```target``` to ```source``` mappings, where the ```source```  can either be an xpath command, an xpath command followed by a function (for post-processing), or a list of xpath commands followed by a function for post-processing. It also defines an XMLHarvester class, which defines a normalized method that simply calls ```tranform``` on a given document. ","created_at":"2015-03-04T19:39:10Z","updated_at":"2015-03-09T22:36:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3058d76dfcd79a175b6e31685eb880b895fe3ce1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fabianvf/scrapi/pulls/102/commits","review_comments_url":"https://api.github.com/repos/fabianvf/scrapi/pulls/102/comments","review_comment_url":"https://api.github.com/repos/fabianvf/scrapi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fabianvf/scrapi/issues/102/comments","statuses_url":"https://api.github.com/repos/fabianvf/scrapi/statuses/93c8c3a8cf47c18724f1bf07ad5af4840ecb6eea","head":{"label":"fabianvf:feature/transformer","ref":"feature/transformer","sha":"93c8c3a8cf47c18724f1bf07ad5af4840ecb6eea","user":{"login":"fabianvf","id":2431974,"avatar_url":"https://avatars.githubusercontent.com/u/2431974?v=3","gravatar_id":"","url":"https://api.github.com/users/fabianvf","html_url":"https://github.com/fabianvf","followers_url":"https://api.github.com/users/fabianvf/followers","following_url":"https://api.github.com/users/fabianvf/following{/other_user}","gists_url":"https://api.github.com/users/fabianvf/gists{/gist_id}","starred_url":"https://api.github.com/users/fabianvf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabianvf/subscriptions","organizations_url":"https://api.github.com/users/fabianvf/orgs","repos_url":"https://api.github.com/users/fabianvf/repos","events_url":"https://api.github.com/users/fabianvf/events{/privacy}","received_events_url":"https://api.github.com/users/fabianvf/received_events","type":"User","site_admin":false},"repo":{"id":21210102,"name":"scrapi","full_name":"fabianvf/scrapi","owner":{"login":"fabianvf","id":2431974,"avatar_url":"https://avatars.githubusercontent.com/u/2431974?v=3","gravatar_id":"","url":"https://api.github.com/users/fabianvf","html_url":"https://github.com/fabianvf","followers_url":"https://api.github.com/users/fabianvf/followers","following_url":"https://api.github.com/users/fabianvf/following{/other_user}","gists_url":"https://api.github.com/users/fabianvf/gists{/gist_id}","starred_url":"https://api.github.com/users/fabianvf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabianvf/subscriptions","organizations_url":"https://api.github.com/users/fabianvf/orgs","repos_url":"https://api.github.com/users/fabianvf/repos","events_url":"https://api.github.com/users/fabianvf/events{/privacy}","received_events_url":"https://api.github.com/users/fabianvf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fabianvf/scrapi","description":"A data processing pipeline that schedules and runs content harvesters, normalizes their data, and outputs that normalized data to a variety of output streams. Data collected can be explored at https://osf.io/share/, and viewed at","fork":false,"url":"https://api.github.com/repos/fabianvf/scrapi","forks_url":"https://api.github.com/repos/fabianvf/scrapi/forks","keys_url":"https://api.github.com/repos/fabianvf/scrapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fabianvf/scrapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fabianvf/scrapi/teams","hooks_url":"https://api.github.com/repos/fabianvf/scrapi/hooks","issue_events_url":"https://api.github.com/repos/fabianvf/scrapi/issues/events{/number}","events_url":"https://api.github.com/repos/fabianvf/scrapi/events","assignees_url":"https://api.github.com/repos/fabianvf/scrapi/assignees{/user}","branches_url":"https://api.github.com/repos/fabianvf/scrapi/branches{/branch}","tags_url":"https://api.github.com/repos/fabianvf/scrapi/tags","blobs_url":"https://api.github.com/repos/fabianvf/scrapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fabianvf/scrapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fabianvf/scrapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/fabianvf/scrapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fabianvf/scrapi/statuses/{sha}","languages_url":"https://api.github.com/repos/fabianvf/scrapi/languages","stargazers_url":"https://api.github.com/repos/fabianvf/scrapi/stargazers","contributors_url":"https://api.github.com/repos/fabianvf/scrapi/contributors","subscribers_url":"https://api.github.com/repos/fabianvf/scrapi/subscribers","subscription_url":"https://api.github.com/repos/fabianvf/scrapi/subscription","commits_url":"https://api.github.com/repos/fabianvf/scrapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/fabianvf/scrapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/fabianvf/scrapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/fabianvf/scrapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/fabianvf/scrapi/contents/{+path}","compare_url":"https://api.github.com/repos/fabianvf/scrapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fabianvf/scrapi/merges","archive_url":"https://api.github.com/repos/fabianvf/scrapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fabianvf/scrapi/downloads","issues_url":"https://api.github.com/repos/fabianvf/scrapi/issues{/number}","pulls_url":"https://api.github.com/repos/fabianvf/scrapi/pulls{/number}","milestones_url":"https://api.github.com/repos/fabianvf/scrapi/milestones{/number}","notifications_url":"https://api.github.com/repos/fabianvf/scrapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fabianvf/scrapi/labels{/name}","releases_url":"https://api.github.com/repos/fabianvf/scrapi/releases{/id}","created_at":"2014-06-25T16:21:08Z","updated_at":"2015-03-09T20:19:33Z","pushed_at":"2015-03-09T21:39:33Z","git_url":"git://github.com/fabianvf/scrapi.git","ssh_url":"git@github.com:fabianvf/scrapi.git","clone_url":"https://github.com/fabianvf/scrapi.git","svn_url":"https://github.com/fabianvf/scrapi","homepage":"https://osf.io/api/v1/share/","size":25652,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":5,"forks":8,"open_issues":5,"watchers":3,"default_branch":"develop"}},"base":{"label":"fabianvf:develop","ref":"develop","sha":"464ffacd9bd79d37365ea5c4950f856e056f7a93","user":{"login":"fabianvf","id":2431974,"avatar_url":"https://avatars.githubusercontent.com/u/2431974?v=3","gravatar_id":"","url":"https://api.github.com/users/fabianvf","html_url":"https://github.com/fabianvf","followers_url":"https://api.github.com/users/fabianvf/followers","following_url":"https://api.github.com/users/fabianvf/following{/other_user}","gists_url":"https://api.github.com/users/fabianvf/gists{/gist_id}","starred_url":"https://api.github.com/users/fabianvf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabianvf/subscriptions","organizations_url":"https://api.github.com/users/fabianvf/orgs","repos_url":"https://api.github.com/users/fabianvf/repos","events_url":"https://api.github.com/users/fabianvf/events{/privacy}","received_events_url":"https://api.github.com/users/fabianvf/received_events","type":"User","site_admin":false},"repo":{"id":21210102,"name":"scrapi","full_name":"fabianvf/scrapi","owner":{"login":"fabianvf","id":2431974,"avatar_url":"https://avatars.githubusercontent.com/u/2431974?v=3","gravatar_id":"","url":"https://api.github.com/users/fabianvf","html_url":"https://github.com/fabianvf","followers_url":"https://api.github.com/users/fabianvf/followers","following_url":"https://api.github.com/users/fabianvf/following{/other_user}","gists_url":"https://api.github.com/users/fabianvf/gists{/gist_id}","starred_url":"https://api.github.com/users/fabianvf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabianvf/subscriptions","organizations_url":"https://api.github.com/users/fabianvf/orgs","repos_url":"https://api.github.com/users/fabianvf/repos","events_url":"https://api.github.com/users/fabianvf/events{/privacy}","received_events_url":"https://api.github.com/users/fabianvf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fabianvf/scrapi","description":"A data processing pipeline that schedules and runs content harvesters, normalizes their data, and outputs that normalized data to a variety of output streams. Data collected can be explored at https://osf.io/share/, and viewed at","fork":false,"url":"https://api.github.com/repos/fabianvf/scrapi","forks_url":"https://api.github.com/repos/fabianvf/scrapi/forks","keys_url":"https://api.github.com/repos/fabianvf/scrapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fabianvf/scrapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fabianvf/scrapi/teams","hooks_url":"https://api.github.com/repos/fabianvf/scrapi/hooks","issue_events_url":"https://api.github.com/repos/fabianvf/scrapi/issues/events{/number}","events_url":"https://api.github.com/repos/fabianvf/scrapi/events","assignees_url":"https://api.github.com/repos/fabianvf/scrapi/assignees{/user}","branches_url":"https://api.github.com/repos/fabianvf/scrapi/branches{/branch}","tags_url":"https://api.github.com/repos/fabianvf/scrapi/tags","blobs_url":"https://api.github.com/repos/fabianvf/scrapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fabianvf/scrapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fabianvf/scrapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/fabianvf/scrapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fabianvf/scrapi/statuses/{sha}","languages_url":"https://api.github.com/repos/fabianvf/scrapi/languages","stargazers_url":"https://api.github.com/repos/fabianvf/scrapi/stargazers","contributors_url":"https://api.github.com/repos/fabianvf/scrapi/contributors","subscribers_url":"https://api.github.com/repos/fabianvf/scrapi/subscribers","subscription_url":"https://api.github.com/repos/fabianvf/scrapi/subscription","commits_url":"https://api.github.com/repos/fabianvf/scrapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/fabianvf/scrapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/fabianvf/scrapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/fabianvf/scrapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/fabianvf/scrapi/contents/{+path}","compare_url":"https://api.github.com/repos/fabianvf/scrapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fabianvf/scrapi/merges","archive_url":"https://api.github.com/repos/fabianvf/scrapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fabianvf/scrapi/downloads","issues_url":"https://api.github.com/repos/fabianvf/scrapi/issues{/number}","pulls_url":"https://api.github.com/repos/fabianvf/scrapi/pulls{/number}","milestones_url":"https://api.github.com/repos/fabianvf/scrapi/milestones{/number}","notifications_url":"https://api.github.com/repos/fabianvf/scrapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fabianvf/scrapi/labels{/name}","releases_url":"https://api.github.com/repos/fabianvf/scrapi/releases{/id}","created_at":"2014-06-25T16:21:08Z","updated_at":"2015-03-09T20:19:33Z","pushed_at":"2015-03-09T21:39:33Z","git_url":"git://github.com/fabianvf/scrapi.git","ssh_url":"git@github.com:fabianvf/scrapi.git","clone_url":"https://github.com/fabianvf/scrapi.git","svn_url":"https://github.com/fabianvf/scrapi","homepage":"https://osf.io/api/v1/share/","size":25652,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":5,"forks":8,"open_issues":5,"watchers":3,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/fabianvf/scrapi/pulls/102"},"html":{"href":"https://github.com/fabianvf/scrapi/pull/102"},"issue":{"href":"https://api.github.com/repos/fabianvf/scrapi/issues/102"},"comments":{"href":"https://api.github.com/repos/fabianvf/scrapi/issues/102/comments"},"review_comments":{"href":"https://api.github.com/repos/fabianvf/scrapi/pulls/102/comments"},"review_comment":{"href":"https://api.github.com/repos/fabianvf/scrapi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fabianvf/scrapi/pulls/102/commits"},"statuses":{"href":"https://api.github.com/repos/fabianvf/scrapi/statuses/93c8c3a8cf47c18724f1bf07ad5af4840ecb6eea"}}}}