{"action":"created","comment":{"url":"https://api.github.com/repos/tlake/learning-journal/pulls/comments/33204693","id":33204693,"diff_hunk":"@@ -0,0 +1,59 @@\n+# -*- coding: utf-8 -*-\n+from __future__ import unicode_literals\n+import os\n+from pyramid.config import Configurator\n+from pyramid.view import view_config\n+from waitress import serve\n+import sqlalchemy as sa\n+from sqlalchemy.ext.declarative import declarative_base\n+import datetime\n+\n+\n+Base = declarative_base()\n+\n+\n+class Entry(Base):\n+\n+    __tablename__ = \"entries\"\n+\n+    id = sa.Column(sa.Integer, primary_key=True, autoincrement=True)\n+    title = sa.Column(sa.Unicode(255), nullable=False)\n+    creation_date = sa.Column(sa.DateTime, nullable=False, default=datetime.datetime.utcnow)\n+    entry_text = sa.Column(sa.UnicodeText, nullable=False)\n+\n+    def __repr__(self):\n+        return \"<Entry(title='%s', creation_date='%s')>\" % (self.title, self.creation_date)","path":"journal.py","position":25,"original_position":25,"commit_id":"683817feac6065080b4ceb0596a2a3f832d7c1d1","original_commit_id":"683817feac6065080b4ceb0596a2a3f832d7c1d1","user":{"login":"cewing","id":417109,"avatar_url":"https://avatars.githubusercontent.com/u/417109?v=3","gravatar_id":"","url":"https://api.github.com/users/cewing","html_url":"https://github.com/cewing","followers_url":"https://api.github.com/users/cewing/followers","following_url":"https://api.github.com/users/cewing/following{/other_user}","gists_url":"https://api.github.com/users/cewing/gists{/gist_id}","starred_url":"https://api.github.com/users/cewing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cewing/subscriptions","organizations_url":"https://api.github.com/users/cewing/orgs","repos_url":"https://api.github.com/users/cewing/repos","events_url":"https://api.github.com/users/cewing/events{/privacy}","received_events_url":"https://api.github.com/users/cewing/received_events","type":"User","site_admin":false},"body":"Using string.format() is more forward compatible than the `%s` string templating approach you use here.  ","created_at":"2015-06-24T22:32:30Z","updated_at":"2015-06-24T22:32:30Z","html_url":"https://github.com/tlake/learning-journal/pull/1#discussion_r33204693","pull_request_url":"https://api.github.com/repos/tlake/learning-journal/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/tlake/learning-journal/pulls/comments/33204693"},"html":{"href":"https://github.com/tlake/learning-journal/pull/1#discussion_r33204693"},"pull_request":{"href":"https://api.github.com/repos/tlake/learning-journal/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/tlake/learning-journal/pulls/1","id":38387161,"html_url":"https://github.com/tlake/learning-journal/pull/1","diff_url":"https://github.com/tlake/learning-journal/pull/1.diff","patch_url":"https://github.com/tlake/learning-journal/pull/1.patch","issue_url":"https://api.github.com/repos/tlake/learning-journal/issues/1","number":1,"state":"closed","locked":false,"title":"Step1","user":{"login":"tlake","id":5035800,"avatar_url":"https://avatars.githubusercontent.com/u/5035800?v=3","gravatar_id":"","url":"https://api.github.com/users/tlake","html_url":"https://github.com/tlake","followers_url":"https://api.github.com/users/tlake/followers","following_url":"https://api.github.com/users/tlake/following{/other_user}","gists_url":"https://api.github.com/users/tlake/gists{/gist_id}","starred_url":"https://api.github.com/users/tlake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlake/subscriptions","organizations_url":"https://api.github.com/users/tlake/orgs","repos_url":"https://api.github.com/users/tlake/repos","events_url":"https://api.github.com/users/tlake/events{/privacy}","received_events_url":"https://api.github.com/users/tlake/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-23T21:50:29Z","updated_at":"2015-06-24T22:32:30Z","closed_at":"2015-06-23T21:53:21Z","merged_at":"2015-06-23T21:53:21Z","merge_commit_sha":"e7462f09375fce154e5354368ec57edef6cc0802","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tlake/learning-journal/pulls/1/commits","review_comments_url":"https://api.github.com/repos/tlake/learning-journal/pulls/1/comments","review_comment_url":"https://api.github.com/repos/tlake/learning-journal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tlake/learning-journal/issues/1/comments","statuses_url":"https://api.github.com/repos/tlake/learning-journal/statuses/683817feac6065080b4ceb0596a2a3f832d7c1d1","head":{"label":"tlake:step1","ref":"step1","sha":"683817feac6065080b4ceb0596a2a3f832d7c1d1","user":{"login":"tlake","id":5035800,"avatar_url":"https://avatars.githubusercontent.com/u/5035800?v=3","gravatar_id":"","url":"https://api.github.com/users/tlake","html_url":"https://github.com/tlake","followers_url":"https://api.github.com/users/tlake/followers","following_url":"https://api.github.com/users/tlake/following{/other_user}","gists_url":"https://api.github.com/users/tlake/gists{/gist_id}","starred_url":"https://api.github.com/users/tlake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlake/subscriptions","organizations_url":"https://api.github.com/users/tlake/orgs","repos_url":"https://api.github.com/users/tlake/repos","events_url":"https://api.github.com/users/tlake/events{/privacy}","received_events_url":"https://api.github.com/users/tlake/received_events","type":"User","site_admin":false},"repo":{"id":37761170,"name":"learning-journal","full_name":"tlake/learning-journal","owner":{"login":"tlake","id":5035800,"avatar_url":"https://avatars.githubusercontent.com/u/5035800?v=3","gravatar_id":"","url":"https://api.github.com/users/tlake","html_url":"https://github.com/tlake","followers_url":"https://api.github.com/users/tlake/followers","following_url":"https://api.github.com/users/tlake/following{/other_user}","gists_url":"https://api.github.com/users/tlake/gists{/gist_id}","starred_url":"https://api.github.com/users/tlake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlake/subscriptions","organizations_url":"https://api.github.com/users/tlake/orgs","repos_url":"https://api.github.com/users/tlake/repos","events_url":"https://api.github.com/users/tlake/events{/privacy}","received_events_url":"https://api.github.com/users/tlake/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tlake/learning-journal","description":"An online learning journal in which to make daily entries of things learned in the Python Development Accelerator.","fork":false,"url":"https://api.github.com/repos/tlake/learning-journal","forks_url":"https://api.github.com/repos/tlake/learning-journal/forks","keys_url":"https://api.github.com/repos/tlake/learning-journal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tlake/learning-journal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tlake/learning-journal/teams","hooks_url":"https://api.github.com/repos/tlake/learning-journal/hooks","issue_events_url":"https://api.github.com/repos/tlake/learning-journal/issues/events{/number}","events_url":"https://api.github.com/repos/tlake/learning-journal/events","assignees_url":"https://api.github.com/repos/tlake/learning-journal/assignees{/user}","branches_url":"https://api.github.com/repos/tlake/learning-journal/branches{/branch}","tags_url":"https://api.github.com/repos/tlake/learning-journal/tags","blobs_url":"https://api.github.com/repos/tlake/learning-journal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tlake/learning-journal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tlake/learning-journal/git/refs{/sha}","trees_url":"https://api.github.com/repos/tlake/learning-journal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tlake/learning-journal/statuses/{sha}","languages_url":"https://api.github.com/repos/tlake/learning-journal/languages","stargazers_url":"https://api.github.com/repos/tlake/learning-journal/stargazers","contributors_url":"https://api.github.com/repos/tlake/learning-journal/contributors","subscribers_url":"https://api.github.com/repos/tlake/learning-journal/subscribers","subscription_url":"https://api.github.com/repos/tlake/learning-journal/subscription","commits_url":"https://api.github.com/repos/tlake/learning-journal/commits{/sha}","git_commits_url":"https://api.github.com/repos/tlake/learning-journal/git/commits{/sha}","comments_url":"https://api.github.com/repos/tlake/learning-journal/comments{/number}","issue_comment_url":"https://api.github.com/repos/tlake/learning-journal/issues/comments{/number}","contents_url":"https://api.github.com/repos/tlake/learning-journal/contents/{+path}","compare_url":"https://api.github.com/repos/tlake/learning-journal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tlake/learning-journal/merges","archive_url":"https://api.github.com/repos/tlake/learning-journal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tlake/learning-journal/downloads","issues_url":"https://api.github.com/repos/tlake/learning-journal/issues{/number}","pulls_url":"https://api.github.com/repos/tlake/learning-journal/pulls{/number}","milestones_url":"https://api.github.com/repos/tlake/learning-journal/milestones{/number}","notifications_url":"https://api.github.com/repos/tlake/learning-journal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tlake/learning-journal/labels{/name}","releases_url":"https://api.github.com/repos/tlake/learning-journal/releases{/id}","created_at":"2015-06-20T06:58:31Z","updated_at":"2015-06-22T02:16:17Z","pushed_at":"2015-06-24T07:30:10Z","git_url":"git://github.com/tlake/learning-journal.git","ssh_url":"git@github.com:tlake/learning-journal.git","clone_url":"https://github.com/tlake/learning-journal.git","svn_url":"https://github.com/tlake/learning-journal","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"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":"tlake:master","ref":"master","sha":"ad9d5b628336e686d9a577e397529e3cf06e2c59","user":{"login":"tlake","id":5035800,"avatar_url":"https://avatars.githubusercontent.com/u/5035800?v=3","gravatar_id":"","url":"https://api.github.com/users/tlake","html_url":"https://github.com/tlake","followers_url":"https://api.github.com/users/tlake/followers","following_url":"https://api.github.com/users/tlake/following{/other_user}","gists_url":"https://api.github.com/users/tlake/gists{/gist_id}","starred_url":"https://api.github.com/users/tlake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlake/subscriptions","organizations_url":"https://api.github.com/users/tlake/orgs","repos_url":"https://api.github.com/users/tlake/repos","events_url":"https://api.github.com/users/tlake/events{/privacy}","received_events_url":"https://api.github.com/users/tlake/received_events","type":"User","site_admin":false},"repo":{"id":37761170,"name":"learning-journal","full_name":"tlake/learning-journal","owner":{"login":"tlake","id":5035800,"avatar_url":"https://avatars.githubusercontent.com/u/5035800?v=3","gravatar_id":"","url":"https://api.github.com/users/tlake","html_url":"https://github.com/tlake","followers_url":"https://api.github.com/users/tlake/followers","following_url":"https://api.github.com/users/tlake/following{/other_user}","gists_url":"https://api.github.com/users/tlake/gists{/gist_id}","starred_url":"https://api.github.com/users/tlake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlake/subscriptions","organizations_url":"https://api.github.com/users/tlake/orgs","repos_url":"https://api.github.com/users/tlake/repos","events_url":"https://api.github.com/users/tlake/events{/privacy}","received_events_url":"https://api.github.com/users/tlake/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tlake/learning-journal","description":"An online learning journal in which to make daily entries of things learned in the Python Development Accelerator.","fork":false,"url":"https://api.github.com/repos/tlake/learning-journal","forks_url":"https://api.github.com/repos/tlake/learning-journal/forks","keys_url":"https://api.github.com/repos/tlake/learning-journal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tlake/learning-journal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tlake/learning-journal/teams","hooks_url":"https://api.github.com/repos/tlake/learning-journal/hooks","issue_events_url":"https://api.github.com/repos/tlake/learning-journal/issues/events{/number}","events_url":"https://api.github.com/repos/tlake/learning-journal/events","assignees_url":"https://api.github.com/repos/tlake/learning-journal/assignees{/user}","branches_url":"https://api.github.com/repos/tlake/learning-journal/branches{/branch}","tags_url":"https://api.github.com/repos/tlake/learning-journal/tags","blobs_url":"https://api.github.com/repos/tlake/learning-journal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tlake/learning-journal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tlake/learning-journal/git/refs{/sha}","trees_url":"https://api.github.com/repos/tlake/learning-journal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tlake/learning-journal/statuses/{sha}","languages_url":"https://api.github.com/repos/tlake/learning-journal/languages","stargazers_url":"https://api.github.com/repos/tlake/learning-journal/stargazers","contributors_url":"https://api.github.com/repos/tlake/learning-journal/contributors","subscribers_url":"https://api.github.com/repos/tlake/learning-journal/subscribers","subscription_url":"https://api.github.com/repos/tlake/learning-journal/subscription","commits_url":"https://api.github.com/repos/tlake/learning-journal/commits{/sha}","git_commits_url":"https://api.github.com/repos/tlake/learning-journal/git/commits{/sha}","comments_url":"https://api.github.com/repos/tlake/learning-journal/comments{/number}","issue_comment_url":"https://api.github.com/repos/tlake/learning-journal/issues/comments{/number}","contents_url":"https://api.github.com/repos/tlake/learning-journal/contents/{+path}","compare_url":"https://api.github.com/repos/tlake/learning-journal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tlake/learning-journal/merges","archive_url":"https://api.github.com/repos/tlake/learning-journal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tlake/learning-journal/downloads","issues_url":"https://api.github.com/repos/tlake/learning-journal/issues{/number}","pulls_url":"https://api.github.com/repos/tlake/learning-journal/pulls{/number}","milestones_url":"https://api.github.com/repos/tlake/learning-journal/milestones{/number}","notifications_url":"https://api.github.com/repos/tlake/learning-journal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tlake/learning-journal/labels{/name}","releases_url":"https://api.github.com/repos/tlake/learning-journal/releases{/id}","created_at":"2015-06-20T06:58:31Z","updated_at":"2015-06-22T02:16:17Z","pushed_at":"2015-06-24T07:30:10Z","git_url":"git://github.com/tlake/learning-journal.git","ssh_url":"git@github.com:tlake/learning-journal.git","clone_url":"https://github.com/tlake/learning-journal.git","svn_url":"https://github.com/tlake/learning-journal","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"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"}},"_links":{"self":{"href":"https://api.github.com/repos/tlake/learning-journal/pulls/1"},"html":{"href":"https://github.com/tlake/learning-journal/pull/1"},"issue":{"href":"https://api.github.com/repos/tlake/learning-journal/issues/1"},"comments":{"href":"https://api.github.com/repos/tlake/learning-journal/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/tlake/learning-journal/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/tlake/learning-journal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tlake/learning-journal/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/tlake/learning-journal/statuses/683817feac6065080b4ceb0596a2a3f832d7c1d1"}}}}