{"action":"created","comment":{"url":"https://api.github.com/repos/cjlee112/socraticqs2/pulls/comments/31030291","id":31030291,"diff_hunk":"@@ -0,0 +1,296 @@\n+from django.template import RequestContext\n+from django.shortcuts import render_to_response\n+from django.contrib.auth import login, logout\n+# from django.core.mail import send_mail\n+from django.conf import settings\n+from django.db import IntegrityError\n+from django.contrib.auth.models import User\n+import time\n+from datetime import datetime\n+\n+from social.pipeline.partial import partial\n+from social.exceptions import (InvalidEmail,\n+                               AuthException,\n+                               AuthAlreadyAssociated)\n+from social.backends.utils import load_backends\n+from social.apps.django_app.default.models import UserSocialAuth\n+\n+from psa.models import AnonymEmail, SecondaryEmail\n+\n+\n+# @partial\n+# def password_ask(strategy, details, user=None, is_new=False, *args, **kwargs):\n+# if is_new and kwargs.get('backend').name == 'email':\n+#         email = user.email or details.get('email')","path":"mysite/psa/pipeline.py","position":24,"original_position":24,"commit_id":"ceeab272994fd6806ab5e700c7895b0eda668a5f","original_commit_id":"ceeab272994fd6806ab5e700c7895b0eda668a5f","user":{"login":"maxsocl","id":877401,"avatar_url":"https://avatars.githubusercontent.com/u/877401?v=3","gravatar_id":"","url":"https://api.github.com/users/maxsocl","html_url":"https://github.com/maxsocl","followers_url":"https://api.github.com/users/maxsocl/followers","following_url":"https://api.github.com/users/maxsocl/following{/other_user}","gists_url":"https://api.github.com/users/maxsocl/gists{/gist_id}","starred_url":"https://api.github.com/users/maxsocl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxsocl/subscriptions","organizations_url":"https://api.github.com/users/maxsocl/orgs","repos_url":"https://api.github.com/users/maxsocl/repos","events_url":"https://api.github.com/users/maxsocl/events{/privacy}","received_events_url":"https://api.github.com/users/maxsocl/received_events","type":"User","site_admin":false},"body":"> What is this?\r\n\r\nPartial pipeline for on-the-fly password asking. Now we do not use this pipeline.","created_at":"2015-05-26T13:06:17Z","updated_at":"2015-05-26T13:06:17Z","html_url":"https://github.com/cjlee112/socraticqs2/pull/37#discussion_r31030291","pull_request_url":"https://api.github.com/repos/cjlee112/socraticqs2/pulls/37","_links":{"self":{"href":"https://api.github.com/repos/cjlee112/socraticqs2/pulls/comments/31030291"},"html":{"href":"https://github.com/cjlee112/socraticqs2/pull/37#discussion_r31030291"},"pull_request":{"href":"https://api.github.com/repos/cjlee112/socraticqs2/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/cjlee112/socraticqs2/pulls/37","id":35315626,"html_url":"https://github.com/cjlee112/socraticqs2/pull/37","diff_url":"https://github.com/cjlee112/socraticqs2/pull/37.diff","patch_url":"https://github.com/cjlee112/socraticqs2/pull/37.patch","issue_url":"https://api.github.com/repos/cjlee112/socraticqs2/issues/37","number":37,"state":"open","locked":false,"title":"LTI and PSA integration","user":{"login":"maxsocl","id":877401,"avatar_url":"https://avatars.githubusercontent.com/u/877401?v=3","gravatar_id":"","url":"https://api.github.com/users/maxsocl","html_url":"https://github.com/maxsocl","followers_url":"https://api.github.com/users/maxsocl/followers","following_url":"https://api.github.com/users/maxsocl/following{/other_user}","gists_url":"https://api.github.com/users/maxsocl/gists{/gist_id}","starred_url":"https://api.github.com/users/maxsocl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxsocl/subscriptions","organizations_url":"https://api.github.com/users/maxsocl/orgs","repos_url":"https://api.github.com/users/maxsocl/repos","events_url":"https://api.github.com/users/maxsocl/events{/privacy}","received_events_url":"https://api.github.com/users/maxsocl/received_events","type":"User","site_admin":false},"body":"This PR adds LTI support along with UX improvements and Python-social-auth integration.\r\nAll commits from last work are included in this branch.\r\n\r\nDocs describing Moodle integration: https://docs.google.com/document/d/1LSTRlqZDTxVtDQSKQq-n2XYncMWyt3hBPHyPVJyP15A/edit\r\n\r\n@cjlee112 FYI","created_at":"2015-05-13T11:04:00Z","updated_at":"2015-05-26T13:06:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e9f7eae799983309638d15a815ab422f2a782ad9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cjlee112/socraticqs2/pulls/37/commits","review_comments_url":"https://api.github.com/repos/cjlee112/socraticqs2/pulls/37/comments","review_comment_url":"https://api.github.com/repos/cjlee112/socraticqs2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cjlee112/socraticqs2/issues/37/comments","statuses_url":"https://api.github.com/repos/cjlee112/socraticqs2/statuses/ceeab272994fd6806ab5e700c7895b0eda668a5f","head":{"label":"raccoongang:develop","ref":"develop","sha":"ceeab272994fd6806ab5e700c7895b0eda668a5f","user":{"login":"raccoongang","id":11388447,"avatar_url":"https://avatars.githubusercontent.com/u/11388447?v=3","gravatar_id":"","url":"https://api.github.com/users/raccoongang","html_url":"https://github.com/raccoongang","followers_url":"https://api.github.com/users/raccoongang/followers","following_url":"https://api.github.com/users/raccoongang/following{/other_user}","gists_url":"https://api.github.com/users/raccoongang/gists{/gist_id}","starred_url":"https://api.github.com/users/raccoongang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raccoongang/subscriptions","organizations_url":"https://api.github.com/users/raccoongang/orgs","repos_url":"https://api.github.com/users/raccoongang/repos","events_url":"https://api.github.com/users/raccoongang/events{/privacy}","received_events_url":"https://api.github.com/users/raccoongang/received_events","type":"Organization","site_admin":false},"repo":{"id":32084912,"name":"socraticqs2","full_name":"raccoongang/socraticqs2","owner":{"login":"raccoongang","id":11388447,"avatar_url":"https://avatars.githubusercontent.com/u/11388447?v=3","gravatar_id":"","url":"https://api.github.com/users/raccoongang","html_url":"https://github.com/raccoongang","followers_url":"https://api.github.com/users/raccoongang/followers","following_url":"https://api.github.com/users/raccoongang/following{/other_user}","gists_url":"https://api.github.com/users/raccoongang/gists{/gist_id}","starred_url":"https://api.github.com/users/raccoongang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raccoongang/subscriptions","organizations_url":"https://api.github.com/users/raccoongang/orgs","repos_url":"https://api.github.com/users/raccoongang/repos","events_url":"https://api.github.com/users/raccoongang/events{/privacy}","received_events_url":"https://api.github.com/users/raccoongang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/raccoongang/socraticqs2","description":"courselets.org web service implementation","fork":true,"url":"https://api.github.com/repos/raccoongang/socraticqs2","forks_url":"https://api.github.com/repos/raccoongang/socraticqs2/forks","keys_url":"https://api.github.com/repos/raccoongang/socraticqs2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raccoongang/socraticqs2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raccoongang/socraticqs2/teams","hooks_url":"https://api.github.com/repos/raccoongang/socraticqs2/hooks","issue_events_url":"https://api.github.com/repos/raccoongang/socraticqs2/issues/events{/number}","events_url":"https://api.github.com/repos/raccoongang/socraticqs2/events","assignees_url":"https://api.github.com/repos/raccoongang/socraticqs2/assignees{/user}","branches_url":"https://api.github.com/repos/raccoongang/socraticqs2/branches{/branch}","tags_url":"https://api.github.com/repos/raccoongang/socraticqs2/tags","blobs_url":"https://api.github.com/repos/raccoongang/socraticqs2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raccoongang/socraticqs2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raccoongang/socraticqs2/git/refs{/sha}","trees_url":"https://api.github.com/repos/raccoongang/socraticqs2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raccoongang/socraticqs2/statuses/{sha}","languages_url":"https://api.github.com/repos/raccoongang/socraticqs2/languages","stargazers_url":"https://api.github.com/repos/raccoongang/socraticqs2/stargazers","contributors_url":"https://api.github.com/repos/raccoongang/socraticqs2/contributors","subscribers_url":"https://api.github.com/repos/raccoongang/socraticqs2/subscribers","subscription_url":"https://api.github.com/repos/raccoongang/socraticqs2/subscription","commits_url":"https://api.github.com/repos/raccoongang/socraticqs2/commits{/sha}","git_commits_url":"https://api.github.com/repos/raccoongang/socraticqs2/git/commits{/sha}","comments_url":"https://api.github.com/repos/raccoongang/socraticqs2/comments{/number}","issue_comment_url":"https://api.github.com/repos/raccoongang/socraticqs2/issues/comments{/number}","contents_url":"https://api.github.com/repos/raccoongang/socraticqs2/contents/{+path}","compare_url":"https://api.github.com/repos/raccoongang/socraticqs2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raccoongang/socraticqs2/merges","archive_url":"https://api.github.com/repos/raccoongang/socraticqs2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raccoongang/socraticqs2/downloads","issues_url":"https://api.github.com/repos/raccoongang/socraticqs2/issues{/number}","pulls_url":"https://api.github.com/repos/raccoongang/socraticqs2/pulls{/number}","milestones_url":"https://api.github.com/repos/raccoongang/socraticqs2/milestones{/number}","notifications_url":"https://api.github.com/repos/raccoongang/socraticqs2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raccoongang/socraticqs2/labels{/name}","releases_url":"https://api.github.com/repos/raccoongang/socraticqs2/releases{/id}","created_at":"2015-03-12T15:34:25Z","updated_at":"2015-03-13T16:26:42Z","pushed_at":"2015-05-20T15:17:42Z","git_url":"git://github.com/raccoongang/socraticqs2.git","ssh_url":"git@github.com:raccoongang/socraticqs2.git","clone_url":"https://github.com/raccoongang/socraticqs2.git","svn_url":"https://github.com/raccoongang/socraticqs2","homepage":null,"size":1167,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cjlee112:master","ref":"master","sha":"5a72d177944412ff290f2d472425b5f11249050a","user":{"login":"cjlee112","id":59820,"avatar_url":"https://avatars.githubusercontent.com/u/59820?v=3","gravatar_id":"","url":"https://api.github.com/users/cjlee112","html_url":"https://github.com/cjlee112","followers_url":"https://api.github.com/users/cjlee112/followers","following_url":"https://api.github.com/users/cjlee112/following{/other_user}","gists_url":"https://api.github.com/users/cjlee112/gists{/gist_id}","starred_url":"https://api.github.com/users/cjlee112/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjlee112/subscriptions","organizations_url":"https://api.github.com/users/cjlee112/orgs","repos_url":"https://api.github.com/users/cjlee112/repos","events_url":"https://api.github.com/users/cjlee112/events{/privacy}","received_events_url":"https://api.github.com/users/cjlee112/received_events","type":"User","site_admin":false},"repo":{"id":27408463,"name":"socraticqs2","full_name":"cjlee112/socraticqs2","owner":{"login":"cjlee112","id":59820,"avatar_url":"https://avatars.githubusercontent.com/u/59820?v=3","gravatar_id":"","url":"https://api.github.com/users/cjlee112","html_url":"https://github.com/cjlee112","followers_url":"https://api.github.com/users/cjlee112/followers","following_url":"https://api.github.com/users/cjlee112/following{/other_user}","gists_url":"https://api.github.com/users/cjlee112/gists{/gist_id}","starred_url":"https://api.github.com/users/cjlee112/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjlee112/subscriptions","organizations_url":"https://api.github.com/users/cjlee112/orgs","repos_url":"https://api.github.com/users/cjlee112/repos","events_url":"https://api.github.com/users/cjlee112/events{/privacy}","received_events_url":"https://api.github.com/users/cjlee112/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cjlee112/socraticqs2","description":"courselets.org web service implementation","fork":false,"url":"https://api.github.com/repos/cjlee112/socraticqs2","forks_url":"https://api.github.com/repos/cjlee112/socraticqs2/forks","keys_url":"https://api.github.com/repos/cjlee112/socraticqs2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cjlee112/socraticqs2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cjlee112/socraticqs2/teams","hooks_url":"https://api.github.com/repos/cjlee112/socraticqs2/hooks","issue_events_url":"https://api.github.com/repos/cjlee112/socraticqs2/issues/events{/number}","events_url":"https://api.github.com/repos/cjlee112/socraticqs2/events","assignees_url":"https://api.github.com/repos/cjlee112/socraticqs2/assignees{/user}","branches_url":"https://api.github.com/repos/cjlee112/socraticqs2/branches{/branch}","tags_url":"https://api.github.com/repos/cjlee112/socraticqs2/tags","blobs_url":"https://api.github.com/repos/cjlee112/socraticqs2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cjlee112/socraticqs2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cjlee112/socraticqs2/git/refs{/sha}","trees_url":"https://api.github.com/repos/cjlee112/socraticqs2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cjlee112/socraticqs2/statuses/{sha}","languages_url":"https://api.github.com/repos/cjlee112/socraticqs2/languages","stargazers_url":"https://api.github.com/repos/cjlee112/socraticqs2/stargazers","contributors_url":"https://api.github.com/repos/cjlee112/socraticqs2/contributors","subscribers_url":"https://api.github.com/repos/cjlee112/socraticqs2/subscribers","subscription_url":"https://api.github.com/repos/cjlee112/socraticqs2/subscription","commits_url":"https://api.github.com/repos/cjlee112/socraticqs2/commits{/sha}","git_commits_url":"https://api.github.com/repos/cjlee112/socraticqs2/git/commits{/sha}","comments_url":"https://api.github.com/repos/cjlee112/socraticqs2/comments{/number}","issue_comment_url":"https://api.github.com/repos/cjlee112/socraticqs2/issues/comments{/number}","contents_url":"https://api.github.com/repos/cjlee112/socraticqs2/contents/{+path}","compare_url":"https://api.github.com/repos/cjlee112/socraticqs2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cjlee112/socraticqs2/merges","archive_url":"https://api.github.com/repos/cjlee112/socraticqs2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cjlee112/socraticqs2/downloads","issues_url":"https://api.github.com/repos/cjlee112/socraticqs2/issues{/number}","pulls_url":"https://api.github.com/repos/cjlee112/socraticqs2/pulls{/number}","milestones_url":"https://api.github.com/repos/cjlee112/socraticqs2/milestones{/number}","notifications_url":"https://api.github.com/repos/cjlee112/socraticqs2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cjlee112/socraticqs2/labels{/name}","releases_url":"https://api.github.com/repos/cjlee112/socraticqs2/releases{/id}","created_at":"2014-12-02T01:11:08Z","updated_at":"2015-05-01T04:28:05Z","pushed_at":"2015-05-20T15:17:42Z","git_url":"git://github.com/cjlee112/socraticqs2.git","ssh_url":"git@github.com:cjlee112/socraticqs2.git","clone_url":"https://github.com/cjlee112/socraticqs2.git","svn_url":"https://github.com/cjlee112/socraticqs2","homepage":null,"size":1319,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":6,"mirror_url":null,"open_issues_count":31,"forks":6,"open_issues":31,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cjlee112/socraticqs2/pulls/37"},"html":{"href":"https://github.com/cjlee112/socraticqs2/pull/37"},"issue":{"href":"https://api.github.com/repos/cjlee112/socraticqs2/issues/37"},"comments":{"href":"https://api.github.com/repos/cjlee112/socraticqs2/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/cjlee112/socraticqs2/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/cjlee112/socraticqs2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cjlee112/socraticqs2/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/cjlee112/socraticqs2/statuses/ceeab272994fd6806ab5e700c7895b0eda668a5f"}}}}