{"action":"created","comment":{"url":"https://api.github.com/repos/ably/docs/pulls/comments/79594047","id":79594047,"diff_hunk":"@@ -244,6 +344,16 @@ blang[ruby].\n \n   Try running your server again with @bundle exec ruby server.rb@ and visiting \"http://localhost:4567/\":http://localhost:4567/ to make sure the new static home page is being served up correctly. If you can see the static page, then it's time to set up a Realtime client that uses token authentication.\n \n+blang[python].\n+  Now we need to serve a static home page. Let's replace the code that responds to the @/@ route (look for @ class index: def GET(self): ... @) with the following:\n+\n+  ```[python]\n+    html = open('index.html')","path":"content/tutorials/token-authentication.textile","position":153,"original_position":153,"commit_id":"5472a2a60bf3fb317a730bd97a9d2096ead01046","original_commit_id":"5472a2a60bf3fb317a730bd97a9d2096ead01046","user":{"login":"mattheworiordan","id":43789,"avatar_url":"https://avatars.githubusercontent.com/u/43789?v=3","gravatar_id":"","url":"https://api.github.com/users/mattheworiordan","html_url":"https://github.com/mattheworiordan","followers_url":"https://api.github.com/users/mattheworiordan/followers","following_url":"https://api.github.com/users/mattheworiordan/following{/other_user}","gists_url":"https://api.github.com/users/mattheworiordan/gists{/gist_id}","starred_url":"https://api.github.com/users/mattheworiordan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattheworiordan/subscriptions","organizations_url":"https://api.github.com/users/mattheworiordan/orgs","repos_url":"https://api.github.com/users/mattheworiordan/repos","events_url":"https://api.github.com/users/mattheworiordan/events{/privacy}","received_events_url":"https://api.github.com/users/mattheworiordan/received_events","type":"User","site_admin":false},"body":"To avoid ambiguity, why not include the full class def such as:\r\n```\r\nclass index:\r\n  def GET(self):\r\n     html = open('index.html')\r\n     return html.read()\r\n```","created_at":"2016-09-20T12:02:38Z","updated_at":"2016-09-20T12:04:21Z","html_url":"https://github.com/ably/docs/pull/167#discussion_r79594047","pull_request_url":"https://api.github.com/repos/ably/docs/pulls/167","_links":{"self":{"href":"https://api.github.com/repos/ably/docs/pulls/comments/79594047"},"html":{"href":"https://github.com/ably/docs/pull/167#discussion_r79594047"},"pull_request":{"href":"https://api.github.com/repos/ably/docs/pulls/167"}}},"pull_request":{"url":"https://api.github.com/repos/ably/docs/pulls/167","id":85921268,"html_url":"https://github.com/ably/docs/pull/167","diff_url":"https://github.com/ably/docs/pull/167.diff","patch_url":"https://github.com/ably/docs/pull/167.patch","issue_url":"https://api.github.com/repos/ably/docs/issues/167","number":167,"state":"open","locked":false,"title":"Tutorials in python v2","user":{"login":"bartlomiejwereszczynski","id":8190023,"avatar_url":"https://avatars.githubusercontent.com/u/8190023?v=3","gravatar_id":"","url":"https://api.github.com/users/bartlomiejwereszczynski","html_url":"https://github.com/bartlomiejwereszczynski","followers_url":"https://api.github.com/users/bartlomiejwereszczynski/followers","following_url":"https://api.github.com/users/bartlomiejwereszczynski/following{/other_user}","gists_url":"https://api.github.com/users/bartlomiejwereszczynski/gists{/gist_id}","starred_url":"https://api.github.com/users/bartlomiejwereszczynski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartlomiejwereszczynski/subscriptions","organizations_url":"https://api.github.com/users/bartlomiejwereszczynski/orgs","repos_url":"https://api.github.com/users/bartlomiejwereszczynski/repos","events_url":"https://api.github.com/users/bartlomiejwereszczynski/events{/privacy}","received_events_url":"https://api.github.com/users/bartlomiejwereszczynski/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-20T07:05:02Z","updated_at":"2016-09-20T12:04:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1e1f1a15683aa9d92060664d09d21fd4696c5b2a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ably/docs/pulls/167/commits","review_comments_url":"https://api.github.com/repos/ably/docs/pulls/167/comments","review_comment_url":"https://api.github.com/repos/ably/docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ably/docs/issues/167/comments","statuses_url":"https://api.github.com/repos/ably/docs/statuses/5472a2a60bf3fb317a730bd97a9d2096ead01046","head":{"label":"bartlomiejwereszczynski:tutorials-in-python-v2","ref":"tutorials-in-python-v2","sha":"5472a2a60bf3fb317a730bd97a9d2096ead01046","user":{"login":"bartlomiejwereszczynski","id":8190023,"avatar_url":"https://avatars.githubusercontent.com/u/8190023?v=3","gravatar_id":"","url":"https://api.github.com/users/bartlomiejwereszczynski","html_url":"https://github.com/bartlomiejwereszczynski","followers_url":"https://api.github.com/users/bartlomiejwereszczynski/followers","following_url":"https://api.github.com/users/bartlomiejwereszczynski/following{/other_user}","gists_url":"https://api.github.com/users/bartlomiejwereszczynski/gists{/gist_id}","starred_url":"https://api.github.com/users/bartlomiejwereszczynski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartlomiejwereszczynski/subscriptions","organizations_url":"https://api.github.com/users/bartlomiejwereszczynski/orgs","repos_url":"https://api.github.com/users/bartlomiejwereszczynski/repos","events_url":"https://api.github.com/users/bartlomiejwereszczynski/events{/privacy}","received_events_url":"https://api.github.com/users/bartlomiejwereszczynski/received_events","type":"User","site_admin":false},"repo":{"id":68272625,"name":"docs","full_name":"bartlomiejwereszczynski/docs","owner":{"login":"bartlomiejwereszczynski","id":8190023,"avatar_url":"https://avatars.githubusercontent.com/u/8190023?v=3","gravatar_id":"","url":"https://api.github.com/users/bartlomiejwereszczynski","html_url":"https://github.com/bartlomiejwereszczynski","followers_url":"https://api.github.com/users/bartlomiejwereszczynski/followers","following_url":"https://api.github.com/users/bartlomiejwereszczynski/following{/other_user}","gists_url":"https://api.github.com/users/bartlomiejwereszczynski/gists{/gist_id}","starred_url":"https://api.github.com/users/bartlomiejwereszczynski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartlomiejwereszczynski/subscriptions","organizations_url":"https://api.github.com/users/bartlomiejwereszczynski/orgs","repos_url":"https://api.github.com/users/bartlomiejwereszczynski/repos","events_url":"https://api.github.com/users/bartlomiejwereszczynski/events{/privacy}","received_events_url":"https://api.github.com/users/bartlomiejwereszczynski/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bartlomiejwereszczynski/docs","description":"Ably API documentation ","fork":true,"url":"https://api.github.com/repos/bartlomiejwereszczynski/docs","forks_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/forks","keys_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/teams","hooks_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/hooks","issue_events_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/issues/events{/number}","events_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/events","assignees_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/assignees{/user}","branches_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/branches{/branch}","tags_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/tags","blobs_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/languages","stargazers_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/stargazers","contributors_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/contributors","subscribers_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/subscribers","subscription_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/subscription","commits_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/contents/{+path}","compare_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/merges","archive_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/downloads","issues_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/issues{/number}","pulls_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/labels{/name}","releases_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/releases{/id}","deployments_url":"https://api.github.com/repos/bartlomiejwereszczynski/docs/deployments","created_at":"2016-09-15T06:50:31Z","updated_at":"2016-09-15T06:50:32Z","pushed_at":"2016-09-20T07:03:32Z","git_url":"git://github.com/bartlomiejwereszczynski/docs.git","ssh_url":"git@github.com:bartlomiejwereszczynski/docs.git","clone_url":"https://github.com/bartlomiejwereszczynski/docs.git","svn_url":"https://github.com/bartlomiejwereszczynski/docs","homepage":null,"size":5106,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"source"}},"base":{"label":"ably:tutorials-example","ref":"tutorials-example","sha":"9746a32c3329634a39e71647f0162d36a82c33e1","user":{"login":"ably","id":1859245,"avatar_url":"https://avatars.githubusercontent.com/u/1859245?v=3","gravatar_id":"","url":"https://api.github.com/users/ably","html_url":"https://github.com/ably","followers_url":"https://api.github.com/users/ably/followers","following_url":"https://api.github.com/users/ably/following{/other_user}","gists_url":"https://api.github.com/users/ably/gists{/gist_id}","starred_url":"https://api.github.com/users/ably/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ably/subscriptions","organizations_url":"https://api.github.com/users/ably/orgs","repos_url":"https://api.github.com/users/ably/repos","events_url":"https://api.github.com/users/ably/events{/privacy}","received_events_url":"https://api.github.com/users/ably/received_events","type":"Organization","site_admin":false},"repo":{"id":7221949,"name":"docs","full_name":"ably/docs","owner":{"login":"ably","id":1859245,"avatar_url":"https://avatars.githubusercontent.com/u/1859245?v=3","gravatar_id":"","url":"https://api.github.com/users/ably","html_url":"https://github.com/ably","followers_url":"https://api.github.com/users/ably/followers","following_url":"https://api.github.com/users/ably/following{/other_user}","gists_url":"https://api.github.com/users/ably/gists{/gist_id}","starred_url":"https://api.github.com/users/ably/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ably/subscriptions","organizations_url":"https://api.github.com/users/ably/orgs","repos_url":"https://api.github.com/users/ably/repos","events_url":"https://api.github.com/users/ably/events{/privacy}","received_events_url":"https://api.github.com/users/ably/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ably/docs","description":"Ably API documentation ","fork":false,"url":"https://api.github.com/repos/ably/docs","forks_url":"https://api.github.com/repos/ably/docs/forks","keys_url":"https://api.github.com/repos/ably/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ably/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ably/docs/teams","hooks_url":"https://api.github.com/repos/ably/docs/hooks","issue_events_url":"https://api.github.com/repos/ably/docs/issues/events{/number}","events_url":"https://api.github.com/repos/ably/docs/events","assignees_url":"https://api.github.com/repos/ably/docs/assignees{/user}","branches_url":"https://api.github.com/repos/ably/docs/branches{/branch}","tags_url":"https://api.github.com/repos/ably/docs/tags","blobs_url":"https://api.github.com/repos/ably/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ably/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ably/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/ably/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ably/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/ably/docs/languages","stargazers_url":"https://api.github.com/repos/ably/docs/stargazers","contributors_url":"https://api.github.com/repos/ably/docs/contributors","subscribers_url":"https://api.github.com/repos/ably/docs/subscribers","subscription_url":"https://api.github.com/repos/ably/docs/subscription","commits_url":"https://api.github.com/repos/ably/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/ably/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/ably/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/ably/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/ably/docs/contents/{+path}","compare_url":"https://api.github.com/repos/ably/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ably/docs/merges","archive_url":"https://api.github.com/repos/ably/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ably/docs/downloads","issues_url":"https://api.github.com/repos/ably/docs/issues{/number}","pulls_url":"https://api.github.com/repos/ably/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/ably/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/ably/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ably/docs/labels{/name}","releases_url":"https://api.github.com/repos/ably/docs/releases{/id}","deployments_url":"https://api.github.com/repos/ably/docs/deployments","created_at":"2012-12-18T10:59:49Z","updated_at":"2016-01-13T09:44:51Z","pushed_at":"2016-09-20T07:05:02Z","git_url":"git://github.com/ably/docs.git","ssh_url":"git@github.com:ably/docs.git","clone_url":"https://github.com/ably/docs.git","svn_url":"https://github.com/ably/docs","homepage":null,"size":5581,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":33,"forks":13,"open_issues":33,"watchers":1,"default_branch":"source"}},"_links":{"self":{"href":"https://api.github.com/repos/ably/docs/pulls/167"},"html":{"href":"https://github.com/ably/docs/pull/167"},"issue":{"href":"https://api.github.com/repos/ably/docs/issues/167"},"comments":{"href":"https://api.github.com/repos/ably/docs/issues/167/comments"},"review_comments":{"href":"https://api.github.com/repos/ably/docs/pulls/167/comments"},"review_comment":{"href":"https://api.github.com/repos/ably/docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ably/docs/pulls/167/commits"},"statuses":{"href":"https://api.github.com/repos/ably/docs/statuses/5472a2a60bf3fb317a730bd97a9d2096ead01046"}}}}
{"actor":{"display_login":"mattheworiordan"}}