{"action":"closed","number":67,"pull_request":{"url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/pulls/67","id":43064005,"html_url":"https://github.com/RedTurtle/eve-sqlalchemy/pull/67","diff_url":"https://github.com/RedTurtle/eve-sqlalchemy/pull/67.diff","patch_url":"https://github.com/RedTurtle/eve-sqlalchemy/pull/67.patch","issue_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/issues/67","number":67,"state":"closed","locked":false,"title":"New constructor that pass a reference to eve when initializing the auth object ","user":{"login":"joystein","id":2102029,"avatar_url":"https://avatars.githubusercontent.com/u/2102029?v=3","gravatar_id":"","url":"https://api.github.com/users/joystein","html_url":"https://github.com/joystein","followers_url":"https://api.github.com/users/joystein/followers","following_url":"https://api.github.com/users/joystein/following{/other_user}","gists_url":"https://api.github.com/users/joystein/gists{/gist_id}","starred_url":"https://api.github.com/users/joystein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joystein/subscriptions","organizations_url":"https://api.github.com/users/joystein/orgs","repos_url":"https://api.github.com/users/joystein/repos","events_url":"https://api.github.com/users/joystein/events{/privacy}","received_events_url":"https://api.github.com/users/joystein/received_events","type":"User","site_admin":false},"body":"Otherwise have to (as far as i can see) do:\r\n\r\n```python\r\napp = Eve(\r\n    settings=SETTINGS_PATH,\r\n    validator=ValidatorSQL,\r\n    data=SQL,\r\n    auth=TokenAuth,\r\n)\r\n\r\n\r\n# NOTE: This is a bit convoluted. TokenAuth needs reference to db.\r\nTokenAuth.app = app\r\n```","created_at":"2015-08-21T17:59:19Z","updated_at":"2015-09-18T09:03:19Z","closed_at":"2015-09-18T09:03:19Z","merged_at":null,"merge_commit_sha":"8c99be198f440cb94e2acdcee8db75bb60ed05cd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/pulls/67/commits","review_comments_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/pulls/67/comments","review_comment_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/issues/67/comments","statuses_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/statuses/b01e2ee256b9ac4702b7c1f80c8fafe724f2eadc","head":{"label":"joystein:new-constructor","ref":"new-constructor","sha":"b01e2ee256b9ac4702b7c1f80c8fafe724f2eadc","user":{"login":"joystein","id":2102029,"avatar_url":"https://avatars.githubusercontent.com/u/2102029?v=3","gravatar_id":"","url":"https://api.github.com/users/joystein","html_url":"https://github.com/joystein","followers_url":"https://api.github.com/users/joystein/followers","following_url":"https://api.github.com/users/joystein/following{/other_user}","gists_url":"https://api.github.com/users/joystein/gists{/gist_id}","starred_url":"https://api.github.com/users/joystein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joystein/subscriptions","organizations_url":"https://api.github.com/users/joystein/orgs","repos_url":"https://api.github.com/users/joystein/repos","events_url":"https://api.github.com/users/joystein/events{/privacy}","received_events_url":"https://api.github.com/users/joystein/received_events","type":"User","site_admin":false},"repo":{"id":39431634,"name":"eve-sqlalchemy","full_name":"joystein/eve-sqlalchemy","owner":{"login":"joystein","id":2102029,"avatar_url":"https://avatars.githubusercontent.com/u/2102029?v=3","gravatar_id":"","url":"https://api.github.com/users/joystein","html_url":"https://github.com/joystein","followers_url":"https://api.github.com/users/joystein/followers","following_url":"https://api.github.com/users/joystein/following{/other_user}","gists_url":"https://api.github.com/users/joystein/gists{/gist_id}","starred_url":"https://api.github.com/users/joystein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joystein/subscriptions","organizations_url":"https://api.github.com/users/joystein/orgs","repos_url":"https://api.github.com/users/joystein/repos","events_url":"https://api.github.com/users/joystein/events{/privacy}","received_events_url":"https://api.github.com/users/joystein/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joystein/eve-sqlalchemy","description":"Eve SQLAlchemy extenstion","fork":true,"url":"https://api.github.com/repos/joystein/eve-sqlalchemy","forks_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/forks","keys_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/teams","hooks_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/hooks","issue_events_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/issues/events{/number}","events_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/events","assignees_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/assignees{/user}","branches_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/branches{/branch}","tags_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/tags","blobs_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/git/refs{/sha}","trees_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/statuses/{sha}","languages_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/languages","stargazers_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/stargazers","contributors_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/contributors","subscribers_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/subscribers","subscription_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/subscription","commits_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/commits{/sha}","git_commits_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/git/commits{/sha}","comments_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/comments{/number}","issue_comment_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/issues/comments{/number}","contents_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/contents/{+path}","compare_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/merges","archive_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/downloads","issues_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/issues{/number}","pulls_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/pulls{/number}","milestones_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/milestones{/number}","notifications_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/labels{/name}","releases_url":"https://api.github.com/repos/joystein/eve-sqlalchemy/releases{/id}","created_at":"2015-07-21T07:46:58Z","updated_at":"2015-07-21T07:46:58Z","pushed_at":"2015-08-26T17:53:48Z","git_url":"git://github.com/joystein/eve-sqlalchemy.git","ssh_url":"git@github.com:joystein/eve-sqlalchemy.git","clone_url":"https://github.com/joystein/eve-sqlalchemy.git","svn_url":"https://github.com/joystein/eve-sqlalchemy","homepage":null,"size":294,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"RedTurtle:master","ref":"master","sha":"56b6b56ac8eb717a5c78cc409e8d3e9db3ec0e0c","user":{"login":"RedTurtle","id":1087171,"avatar_url":"https://avatars.githubusercontent.com/u/1087171?v=3","gravatar_id":"","url":"https://api.github.com/users/RedTurtle","html_url":"https://github.com/RedTurtle","followers_url":"https://api.github.com/users/RedTurtle/followers","following_url":"https://api.github.com/users/RedTurtle/following{/other_user}","gists_url":"https://api.github.com/users/RedTurtle/gists{/gist_id}","starred_url":"https://api.github.com/users/RedTurtle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RedTurtle/subscriptions","organizations_url":"https://api.github.com/users/RedTurtle/orgs","repos_url":"https://api.github.com/users/RedTurtle/repos","events_url":"https://api.github.com/users/RedTurtle/events{/privacy}","received_events_url":"https://api.github.com/users/RedTurtle/received_events","type":"Organization","site_admin":false},"repo":{"id":28841389,"name":"eve-sqlalchemy","full_name":"RedTurtle/eve-sqlalchemy","owner":{"login":"RedTurtle","id":1087171,"avatar_url":"https://avatars.githubusercontent.com/u/1087171?v=3","gravatar_id":"","url":"https://api.github.com/users/RedTurtle","html_url":"https://github.com/RedTurtle","followers_url":"https://api.github.com/users/RedTurtle/followers","following_url":"https://api.github.com/users/RedTurtle/following{/other_user}","gists_url":"https://api.github.com/users/RedTurtle/gists{/gist_id}","starred_url":"https://api.github.com/users/RedTurtle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RedTurtle/subscriptions","organizations_url":"https://api.github.com/users/RedTurtle/orgs","repos_url":"https://api.github.com/users/RedTurtle/repos","events_url":"https://api.github.com/users/RedTurtle/events{/privacy}","received_events_url":"https://api.github.com/users/RedTurtle/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RedTurtle/eve-sqlalchemy","description":"Eve SQLAlchemy extenstion","fork":false,"url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy","forks_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/forks","keys_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/teams","hooks_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/hooks","issue_events_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/issues/events{/number}","events_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/events","assignees_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/assignees{/user}","branches_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/branches{/branch}","tags_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/tags","blobs_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/git/refs{/sha}","trees_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/statuses/{sha}","languages_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/languages","stargazers_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/stargazers","contributors_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/contributors","subscribers_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/subscribers","subscription_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/subscription","commits_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/commits{/sha}","git_commits_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/git/commits{/sha}","comments_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/comments{/number}","issue_comment_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/issues/comments{/number}","contents_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/contents/{+path}","compare_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/merges","archive_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/downloads","issues_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/issues{/number}","pulls_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/pulls{/number}","milestones_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/milestones{/number}","notifications_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/labels{/name}","releases_url":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/releases{/id}","created_at":"2015-01-06T01:47:02Z","updated_at":"2015-08-25T06:26:10Z","pushed_at":"2015-09-17T11:30:58Z","git_url":"git://github.com/RedTurtle/eve-sqlalchemy.git","ssh_url":"git@github.com:RedTurtle/eve-sqlalchemy.git","clone_url":"https://github.com/RedTurtle/eve-sqlalchemy.git","svn_url":"https://github.com/RedTurtle/eve-sqlalchemy","homepage":null,"size":617,"stargazers_count":52,"watchers_count":52,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":14,"forks":20,"open_issues":14,"watchers":52,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/pulls/67"},"html":{"href":"https://github.com/RedTurtle/eve-sqlalchemy/pull/67"},"issue":{"href":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/issues/67"},"comments":{"href":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/issues/67/comments"},"review_comments":{"href":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/pulls/67/comments"},"review_comment":{"href":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/pulls/67/commits"},"statuses":{"href":"https://api.github.com/repos/RedTurtle/eve-sqlalchemy/statuses/b01e2ee256b9ac4702b7c1f80c8fafe724f2eadc"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":3,"review_comments":0,"commits":4,"additions":52,"deletions":5,"changed_files":3}}