GitHub PullRequestReviewCommentEvent at 2014-12-09 21:05:19
Repository: dataspawn
Actor: MiguelABarbosa
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/pulls/comments/21562172","id":21562172,"diff_hunk":"@@ -1,3 +1,63 @@\n-from django.shortcuts import render\n+from django.contrib.auth import authenticate, login, logout\n+from django.contrib.auth.decorators import login_required\n+from django.http import HttpResponseRedirect\n+from django.shortcuts import render, redirect\n+from visualizer.models import User, Spreadsheet\n+from visualizer.forms import EmailUserCreationForm, SpreadsheetForm\n \n-# Create your views here.\n+\n+def index(request):\n+    return render(request, \"index.html\")\n+\n+\n+def about(request):\n+    return render(request, \"about.html\")\n+\n+\n+def signup(request):\n+    if request.method == 'POST':\n+        form = EmailUserCreationForm(request.POST)\n+        if form.is_valid():\n+            username = request.POST['username']\n+            password = request.POST['password1']\n+            user = form.save()\n+            user = authenticate(username=username, password=password)\n+            if user is not None:\n+                if user.is_active:\n+                    login(request, user)\n+                    return redirect(\"main_area\")\n+    else:\n+        form = EmailUserCreationForm()\n+    return render(request, \"registration/signup.html\", {'form': form})\n+\n+@login_required()\n+def main_area(request):\n+    if request.method == 'POST':\n+        form = SpreadsheetForm(request.POST, request.FILES)\n+        if form.is_valid():\n+            print form.cleaned_data","path":"visualizer/views.py","position":40,"original_position":40,"commit_id":"28c1e03952ac6d5e22bdd998df96c87249ec0e8d","original_commit_id":"1a04c9d2822bb9363cb8a3eeb7ab74e637d88707","user":{"login":"MiguelABarbosa","id":4675017,"avatar_url":"https://avatars.githubusercontent.com/u/4675017?v=3","gravatar_id":"","url":"https://api.github.com/users/MiguelABarbosa","html_url":"https://github.com/MiguelABarbosa","followers_url":"https://api.github.com/users/MiguelABarbosa/followers","following_url":"https://api.github.com/users/MiguelABarbosa/following{/other_user}","gists_url":"https://api.github.com/users/MiguelABarbosa/gists{/gist_id}","starred_url":"https://api.github.com/users/MiguelABarbosa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MiguelABarbosa/subscriptions","organizations_url":"https://api.github.com/users/MiguelABarbosa/orgs","repos_url":"https://api.github.com/users/MiguelABarbosa/repos","events_url":"https://api.github.com/users/MiguelABarbosa/events{/privacy}","received_events_url":"https://api.github.com/users/MiguelABarbosa/received_events","type":"User","site_admin":false},"body":"removed.","created_at":"2014-12-09T21:05:19Z","updated_at":"2014-12-09T21:05:19Z","html_url":"https://github.com/MiguelABarbosa/dataspawn/pull/11#discussion_r21562172","pull_request_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/MiguelABarbosa/dataspawn/pulls/comments/21562172"},"html":{"href":"https://github.com/MiguelABarbosa/dataspawn/pull/11#discussion_r21562172"},"pull_request":{"href":"https://api.github.com/repos/MiguelABarbosa/dataspawn/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/pulls/11","id":25738521,"html_url":"https://github.com/MiguelABarbosa/dataspawn/pull/11","diff_url":"https://github.com/MiguelABarbosa/dataspawn/pull/11.diff","patch_url":"https://github.com/MiguelABarbosa/dataspawn/pull/11.patch","issue_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/issues/11","number":11,"state":"open","locked":false,"title":"Setup templates views","user":{"login":"MiguelABarbosa","id":4675017,"avatar_url":"https://avatars.githubusercontent.com/u/4675017?v=3","gravatar_id":"","url":"https://api.github.com/users/MiguelABarbosa","html_url":"https://github.com/MiguelABarbosa","followers_url":"https://api.github.com/users/MiguelABarbosa/followers","following_url":"https://api.github.com/users/MiguelABarbosa/following{/other_user}","gists_url":"https://api.github.com/users/MiguelABarbosa/gists{/gist_id}","starred_url":"https://api.github.com/users/MiguelABarbosa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MiguelABarbosa/subscriptions","organizations_url":"https://api.github.com/users/MiguelABarbosa/orgs","repos_url":"https://api.github.com/users/MiguelABarbosa/repos","events_url":"https://api.github.com/users/MiguelABarbosa/events{/privacy}","received_events_url":"https://api.github.com/users/MiguelABarbosa/received_events","type":"User","site_admin":false},"body":"Created Forms (usercreation, spreadsheetform)\r\nCreated Models (user and spreadsheet)\r\nCreated Templates (simple main page, signup, login, csv upload area, results page)\r\nCreated Views (index, about, signup, main_area, results, settings, logout)\r\n\r\nRecap:\r\nCSV uploads is working\r\nUser Creation is working\r\n\r\nLeft Todo:\r\nRun data extraction, transformation on csvs and save raw and normalized data to spreadsheet model \r\n\r\n!!!Warning(s)!!!\r\n1. Check your local requirements.txt file for potential merge issues/conflicts/missing files\r\n2. Before running make sure to do python manage.py make migrations  and python manage.py migrate\r\n\r\n\r\n","created_at":"2014-12-09T12:17:29Z","updated_at":"2014-12-09T21:05:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b237a3948ca5b3c27fdb4640b6057ba6aaf3d517","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/pulls/11/commits","review_comments_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/pulls/11/comments","review_comment_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/pulls/comments/{number}","comments_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/issues/11/comments","statuses_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/statuses/28c1e03952ac6d5e22bdd998df96c87249ec0e8d","head":{"label":"MiguelABarbosa:setup_templates_views","ref":"setup_templates_views","sha":"28c1e03952ac6d5e22bdd998df96c87249ec0e8d","user":{"login":"MiguelABarbosa","id":4675017,"avatar_url":"https://avatars.githubusercontent.com/u/4675017?v=3","gravatar_id":"","url":"https://api.github.com/users/MiguelABarbosa","html_url":"https://github.com/MiguelABarbosa","followers_url":"https://api.github.com/users/MiguelABarbosa/followers","following_url":"https://api.github.com/users/MiguelABarbosa/following{/other_user}","gists_url":"https://api.github.com/users/MiguelABarbosa/gists{/gist_id}","starred_url":"https://api.github.com/users/MiguelABarbosa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MiguelABarbosa/subscriptions","organizations_url":"https://api.github.com/users/MiguelABarbosa/orgs","repos_url":"https://api.github.com/users/MiguelABarbosa/repos","events_url":"https://api.github.com/users/MiguelABarbosa/events{/privacy}","received_events_url":"https://api.github.com/users/MiguelABarbosa/received_events","type":"User","site_admin":false},"repo":{"id":27646961,"name":"dataspawn","full_name":"MiguelABarbosa/dataspawn","owner":{"login":"MiguelABarbosa","id":4675017,"avatar_url":"https://avatars.githubusercontent.com/u/4675017?v=3","gravatar_id":"","url":"https://api.github.com/users/MiguelABarbosa","html_url":"https://github.com/MiguelABarbosa","followers_url":"https://api.github.com/users/MiguelABarbosa/followers","following_url":"https://api.github.com/users/MiguelABarbosa/following{/other_user}","gists_url":"https://api.github.com/users/MiguelABarbosa/gists{/gist_id}","starred_url":"https://api.github.com/users/MiguelABarbosa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MiguelABarbosa/subscriptions","organizations_url":"https://api.github.com/users/MiguelABarbosa/orgs","repos_url":"https://api.github.com/users/MiguelABarbosa/repos","events_url":"https://api.github.com/users/MiguelABarbosa/events{/privacy}","received_events_url":"https://api.github.com/users/MiguelABarbosa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MiguelABarbosa/dataspawn","description":"Upload a csv and automatically generate data visualizations","fork":false,"url":"https://api.github.com/repos/MiguelABarbosa/dataspawn","forks_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/forks","keys_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/teams","hooks_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/hooks","issue_events_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/issues/events{/number}","events_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/events","assignees_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/assignees{/user}","branches_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/branches{/branch}","tags_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/tags","blobs_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/git/refs{/sha}","trees_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/statuses/{sha}","languages_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/languages","stargazers_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/stargazers","contributors_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/contributors","subscribers_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/subscribers","subscription_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/subscription","commits_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/commits{/sha}","git_commits_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/git/commits{/sha}","comments_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/comments{/number}","issue_comment_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/issues/comments/{number}","contents_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/contents/{+path}","compare_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/merges","archive_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/downloads","issues_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/issues{/number}","pulls_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/pulls{/number}","milestones_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/milestones{/number}","notifications_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/labels{/name}","releases_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/releases{/id}","created_at":"2014-12-06T19:51:19Z","updated_at":"2014-12-09T03:43:34Z","pushed_at":"2014-12-09T21:00:41Z","git_url":"git://github.com/MiguelABarbosa/dataspawn.git","ssh_url":"git@github.com:MiguelABarbosa/dataspawn.git","clone_url":"https://github.com/MiguelABarbosa/dataspawn.git","svn_url":"https://github.com/MiguelABarbosa/dataspawn","homepage":null,"size":0,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":1,"default_branch":"master"}},"base":{"label":"MiguelABarbosa:master","ref":"master","sha":"934b81bcffee9c517d3d49d84cceec1d072f68c8","user":{"login":"MiguelABarbosa","id":4675017,"avatar_url":"https://avatars.githubusercontent.com/u/4675017?v=3","gravatar_id":"","url":"https://api.github.com/users/MiguelABarbosa","html_url":"https://github.com/MiguelABarbosa","followers_url":"https://api.github.com/users/MiguelABarbosa/followers","following_url":"https://api.github.com/users/MiguelABarbosa/following{/other_user}","gists_url":"https://api.github.com/users/MiguelABarbosa/gists{/gist_id}","starred_url":"https://api.github.com/users/MiguelABarbosa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MiguelABarbosa/subscriptions","organizations_url":"https://api.github.com/users/MiguelABarbosa/orgs","repos_url":"https://api.github.com/users/MiguelABarbosa/repos","events_url":"https://api.github.com/users/MiguelABarbosa/events{/privacy}","received_events_url":"https://api.github.com/users/MiguelABarbosa/received_events","type":"User","site_admin":false},"repo":{"id":27646961,"name":"dataspawn","full_name":"MiguelABarbosa/dataspawn","owner":{"login":"MiguelABarbosa","id":4675017,"avatar_url":"https://avatars.githubusercontent.com/u/4675017?v=3","gravatar_id":"","url":"https://api.github.com/users/MiguelABarbosa","html_url":"https://github.com/MiguelABarbosa","followers_url":"https://api.github.com/users/MiguelABarbosa/followers","following_url":"https://api.github.com/users/MiguelABarbosa/following{/other_user}","gists_url":"https://api.github.com/users/MiguelABarbosa/gists{/gist_id}","starred_url":"https://api.github.com/users/MiguelABarbosa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MiguelABarbosa/subscriptions","organizations_url":"https://api.github.com/users/MiguelABarbosa/orgs","repos_url":"https://api.github.com/users/MiguelABarbosa/repos","events_url":"https://api.github.com/users/MiguelABarbosa/events{/privacy}","received_events_url":"https://api.github.com/users/MiguelABarbosa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MiguelABarbosa/dataspawn","description":"Upload a csv and automatically generate data visualizations","fork":false,"url":"https://api.github.com/repos/MiguelABarbosa/dataspawn","forks_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/forks","keys_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/teams","hooks_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/hooks","issue_events_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/issues/events{/number}","events_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/events","assignees_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/assignees{/user}","branches_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/branches{/branch}","tags_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/tags","blobs_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/git/refs{/sha}","trees_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/statuses/{sha}","languages_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/languages","stargazers_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/stargazers","contributors_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/contributors","subscribers_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/subscribers","subscription_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/subscription","commits_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/commits{/sha}","git_commits_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/git/commits{/sha}","comments_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/comments{/number}","issue_comment_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/issues/comments/{number}","contents_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/contents/{+path}","compare_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/merges","archive_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/downloads","issues_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/issues{/number}","pulls_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/pulls{/number}","milestones_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/milestones{/number}","notifications_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/labels{/name}","releases_url":"https://api.github.com/repos/MiguelABarbosa/dataspawn/releases{/id}","created_at":"2014-12-06T19:51:19Z","updated_at":"2014-12-09T03:43:34Z","pushed_at":"2014-12-09T21:00:41Z","git_url":"git://github.com/MiguelABarbosa/dataspawn.git","ssh_url":"git@github.com:MiguelABarbosa/dataspawn.git","clone_url":"https://github.com/MiguelABarbosa/dataspawn.git","svn_url":"https://github.com/MiguelABarbosa/dataspawn","homepage":null,"size":0,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MiguelABarbosa/dataspawn/pulls/11"},"html":{"href":"https://github.com/MiguelABarbosa/dataspawn/pull/11"},"issue":{"href":"https://api.github.com/repos/MiguelABarbosa/dataspawn/issues/11"},"comments":{"href":"https://api.github.com/repos/MiguelABarbosa/dataspawn/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/MiguelABarbosa/dataspawn/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/MiguelABarbosa/dataspawn/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/MiguelABarbosa/dataspawn/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/MiguelABarbosa/dataspawn/statuses/28c1e03952ac6d5e22bdd998df96c87249ec0e8d"}}}}