{"action":"created","comment":{"url":"https://api.github.com/repos/open-data/ckanext-canada/pulls/comments/56832703","id":56832703,"diff_hunk":"@@ -110,11 +75,52 @@ def org_key(org):\n         )\n         return render('organization/index.html')\n \n+    def datatable(self, resource_id):\n+        echo = int(request.params['sEcho'])\n+        search_text = unicode(request.params['sSearch'])\n+        offset = int(request.params['iDisplayStart'])\n+        limit = int(request.params['iDisplayLength'])\n+        sort_cols = int(request.params['iSortingCols'])\n+        if sort_cols:\n+            sort_by_num = int(request.params['iSortCol_0'])\n+            sort_order = ('desc' if request.params['sSortDir_0'] == 'desc'\n+                          else 'asc')","path":"ckanext/canada/controller.py","position":86,"original_position":86,"commit_id":"9bf9794e2e7fa75ac9bee6bc3cae18fc0dfbd1e8","original_commit_id":"9bf9794e2e7fa75ac9bee6bc3cae18fc0dfbd1e8","user":{"login":"TkTech","id":72590,"avatar_url":"https://avatars.githubusercontent.com/u/72590?v=3","gravatar_id":"","url":"https://api.github.com/users/TkTech","html_url":"https://github.com/TkTech","followers_url":"https://api.github.com/users/TkTech/followers","following_url":"https://api.github.com/users/TkTech/following{/other_user}","gists_url":"https://api.github.com/users/TkTech/gists{/gist_id}","starred_url":"https://api.github.com/users/TkTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TkTech/subscriptions","organizations_url":"https://api.github.com/users/TkTech/orgs","repos_url":"https://api.github.com/users/TkTech/repos","events_url":"https://api.github.com/users/TkTech/events{/privacy}","received_events_url":"https://api.github.com/users/TkTech/received_events","type":"User","site_admin":false},"body":"Brackets should always open and close at the same level of indentation.","created_at":"2016-03-21T14:42:18Z","updated_at":"2016-03-21T14:42:18Z","html_url":"https://github.com/open-data/ckanext-canada/pull/629#discussion_r56832703","pull_request_url":"https://api.github.com/repos/open-data/ckanext-canada/pulls/629","_links":{"self":{"href":"https://api.github.com/repos/open-data/ckanext-canada/pulls/comments/56832703"},"html":{"href":"https://github.com/open-data/ckanext-canada/pull/629#discussion_r56832703"},"pull_request":{"href":"https://api.github.com/repos/open-data/ckanext-canada/pulls/629"}}},"pull_request":{"url":"https://api.github.com/repos/open-data/ckanext-canada/pulls/629","id":63573873,"html_url":"https://github.com/open-data/ckanext-canada/pull/629","diff_url":"https://github.com/open-data/ckanext-canada/pull/629.diff","patch_url":"https://github.com/open-data/ckanext-canada/pull/629.patch","issue_url":"https://api.github.com/repos/open-data/ckanext-canada/issues/629","number":629,"state":"open","locked":false,"title":"Cleanup","user":{"login":"LaurentGoderre","id":1090826,"avatar_url":"https://avatars.githubusercontent.com/u/1090826?v=3","gravatar_id":"","url":"https://api.github.com/users/LaurentGoderre","html_url":"https://github.com/LaurentGoderre","followers_url":"https://api.github.com/users/LaurentGoderre/followers","following_url":"https://api.github.com/users/LaurentGoderre/following{/other_user}","gists_url":"https://api.github.com/users/LaurentGoderre/gists{/gist_id}","starred_url":"https://api.github.com/users/LaurentGoderre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaurentGoderre/subscriptions","organizations_url":"https://api.github.com/users/LaurentGoderre/orgs","repos_url":"https://api.github.com/users/LaurentGoderre/repos","events_url":"https://api.github.com/users/LaurentGoderre/events{/privacy}","received_events_url":"https://api.github.com/users/LaurentGoderre/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-21T14:40:10Z","updated_at":"2016-03-21T14:42:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7ad46b8cecf06b1d24eb4b902436608ca86d0d1c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/open-data/ckanext-canada/pulls/629/commits","review_comments_url":"https://api.github.com/repos/open-data/ckanext-canada/pulls/629/comments","review_comment_url":"https://api.github.com/repos/open-data/ckanext-canada/pulls/comments{/number}","comments_url":"https://api.github.com/repos/open-data/ckanext-canada/issues/629/comments","statuses_url":"https://api.github.com/repos/open-data/ckanext-canada/statuses/9bf9794e2e7fa75ac9bee6bc3cae18fc0dfbd1e8","head":{"label":"LaurentGoderre:cleanup","ref":"cleanup","sha":"9bf9794e2e7fa75ac9bee6bc3cae18fc0dfbd1e8","user":{"login":"LaurentGoderre","id":1090826,"avatar_url":"https://avatars.githubusercontent.com/u/1090826?v=3","gravatar_id":"","url":"https://api.github.com/users/LaurentGoderre","html_url":"https://github.com/LaurentGoderre","followers_url":"https://api.github.com/users/LaurentGoderre/followers","following_url":"https://api.github.com/users/LaurentGoderre/following{/other_user}","gists_url":"https://api.github.com/users/LaurentGoderre/gists{/gist_id}","starred_url":"https://api.github.com/users/LaurentGoderre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaurentGoderre/subscriptions","organizations_url":"https://api.github.com/users/LaurentGoderre/orgs","repos_url":"https://api.github.com/users/LaurentGoderre/repos","events_url":"https://api.github.com/users/LaurentGoderre/events{/privacy}","received_events_url":"https://api.github.com/users/LaurentGoderre/received_events","type":"User","site_admin":false},"repo":{"id":43553937,"name":"ckanext-canada","full_name":"LaurentGoderre/ckanext-canada","owner":{"login":"LaurentGoderre","id":1090826,"avatar_url":"https://avatars.githubusercontent.com/u/1090826?v=3","gravatar_id":"","url":"https://api.github.com/users/LaurentGoderre","html_url":"https://github.com/LaurentGoderre","followers_url":"https://api.github.com/users/LaurentGoderre/followers","following_url":"https://api.github.com/users/LaurentGoderre/following{/other_user}","gists_url":"https://api.github.com/users/LaurentGoderre/gists{/gist_id}","starred_url":"https://api.github.com/users/LaurentGoderre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaurentGoderre/subscriptions","organizations_url":"https://api.github.com/users/LaurentGoderre/orgs","repos_url":"https://api.github.com/users/LaurentGoderre/repos","events_url":"https://api.github.com/users/LaurentGoderre/events{/privacy}","received_events_url":"https://api.github.com/users/LaurentGoderre/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LaurentGoderre/ckanext-canada","description":"Government of Canada CKAN Extension - Extension à CKAN du Gouvernement du Canada","fork":true,"url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada","forks_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/forks","keys_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/teams","hooks_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/hooks","issue_events_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/issues/events{/number}","events_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/events","assignees_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/assignees{/user}","branches_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/branches{/branch}","tags_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/tags","blobs_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/git/refs{/sha}","trees_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/statuses/{sha}","languages_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/languages","stargazers_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/stargazers","contributors_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/contributors","subscribers_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/subscribers","subscription_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/subscription","commits_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/commits{/sha}","git_commits_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/git/commits{/sha}","comments_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/comments{/number}","issue_comment_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/issues/comments{/number}","contents_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/contents/{+path}","compare_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/merges","archive_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/downloads","issues_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/issues{/number}","pulls_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/pulls{/number}","milestones_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/milestones{/number}","notifications_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/labels{/name}","releases_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/releases{/id}","deployments_url":"https://api.github.com/repos/LaurentGoderre/ckanext-canada/deployments","created_at":"2015-10-02T13:21:49Z","updated_at":"2015-10-02T13:21:50Z","pushed_at":"2016-03-21T14:36:44Z","git_url":"git://github.com/LaurentGoderre/ckanext-canada.git","ssh_url":"git@github.com:LaurentGoderre/ckanext-canada.git","clone_url":"https://github.com/LaurentGoderre/ckanext-canada.git","svn_url":"https://github.com/LaurentGoderre/ckanext-canada","homepage":null,"size":14658,"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":"open-data:wet4-scheming","ref":"wet4-scheming","sha":"f59a24fcdfb0e475c37eee7291ea62e4a1a4a66f","user":{"login":"open-data","id":2651841,"avatar_url":"https://avatars.githubusercontent.com/u/2651841?v=3","gravatar_id":"","url":"https://api.github.com/users/open-data","html_url":"https://github.com/open-data","followers_url":"https://api.github.com/users/open-data/followers","following_url":"https://api.github.com/users/open-data/following{/other_user}","gists_url":"https://api.github.com/users/open-data/gists{/gist_id}","starred_url":"https://api.github.com/users/open-data/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-data/subscriptions","organizations_url":"https://api.github.com/users/open-data/orgs","repos_url":"https://api.github.com/users/open-data/repos","events_url":"https://api.github.com/users/open-data/events{/privacy}","received_events_url":"https://api.github.com/users/open-data/received_events","type":"Organization","site_admin":false},"repo":{"id":7136430,"name":"ckanext-canada","full_name":"open-data/ckanext-canada","owner":{"login":"open-data","id":2651841,"avatar_url":"https://avatars.githubusercontent.com/u/2651841?v=3","gravatar_id":"","url":"https://api.github.com/users/open-data","html_url":"https://github.com/open-data","followers_url":"https://api.github.com/users/open-data/followers","following_url":"https://api.github.com/users/open-data/following{/other_user}","gists_url":"https://api.github.com/users/open-data/gists{/gist_id}","starred_url":"https://api.github.com/users/open-data/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-data/subscriptions","organizations_url":"https://api.github.com/users/open-data/orgs","repos_url":"https://api.github.com/users/open-data/repos","events_url":"https://api.github.com/users/open-data/events{/privacy}","received_events_url":"https://api.github.com/users/open-data/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/open-data/ckanext-canada","description":"Government of Canada CKAN Extension - Extension à CKAN du Gouvernement du Canada","fork":false,"url":"https://api.github.com/repos/open-data/ckanext-canada","forks_url":"https://api.github.com/repos/open-data/ckanext-canada/forks","keys_url":"https://api.github.com/repos/open-data/ckanext-canada/keys{/key_id}","collaborators_url":"https://api.github.com/repos/open-data/ckanext-canada/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/open-data/ckanext-canada/teams","hooks_url":"https://api.github.com/repos/open-data/ckanext-canada/hooks","issue_events_url":"https://api.github.com/repos/open-data/ckanext-canada/issues/events{/number}","events_url":"https://api.github.com/repos/open-data/ckanext-canada/events","assignees_url":"https://api.github.com/repos/open-data/ckanext-canada/assignees{/user}","branches_url":"https://api.github.com/repos/open-data/ckanext-canada/branches{/branch}","tags_url":"https://api.github.com/repos/open-data/ckanext-canada/tags","blobs_url":"https://api.github.com/repos/open-data/ckanext-canada/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/open-data/ckanext-canada/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/open-data/ckanext-canada/git/refs{/sha}","trees_url":"https://api.github.com/repos/open-data/ckanext-canada/git/trees{/sha}","statuses_url":"https://api.github.com/repos/open-data/ckanext-canada/statuses/{sha}","languages_url":"https://api.github.com/repos/open-data/ckanext-canada/languages","stargazers_url":"https://api.github.com/repos/open-data/ckanext-canada/stargazers","contributors_url":"https://api.github.com/repos/open-data/ckanext-canada/contributors","subscribers_url":"https://api.github.com/repos/open-data/ckanext-canada/subscribers","subscription_url":"https://api.github.com/repos/open-data/ckanext-canada/subscription","commits_url":"https://api.github.com/repos/open-data/ckanext-canada/commits{/sha}","git_commits_url":"https://api.github.com/repos/open-data/ckanext-canada/git/commits{/sha}","comments_url":"https://api.github.com/repos/open-data/ckanext-canada/comments{/number}","issue_comment_url":"https://api.github.com/repos/open-data/ckanext-canada/issues/comments{/number}","contents_url":"https://api.github.com/repos/open-data/ckanext-canada/contents/{+path}","compare_url":"https://api.github.com/repos/open-data/ckanext-canada/compare/{base}...{head}","merges_url":"https://api.github.com/repos/open-data/ckanext-canada/merges","archive_url":"https://api.github.com/repos/open-data/ckanext-canada/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/open-data/ckanext-canada/downloads","issues_url":"https://api.github.com/repos/open-data/ckanext-canada/issues{/number}","pulls_url":"https://api.github.com/repos/open-data/ckanext-canada/pulls{/number}","milestones_url":"https://api.github.com/repos/open-data/ckanext-canada/milestones{/number}","notifications_url":"https://api.github.com/repos/open-data/ckanext-canada/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/open-data/ckanext-canada/labels{/name}","releases_url":"https://api.github.com/repos/open-data/ckanext-canada/releases{/id}","deployments_url":"https://api.github.com/repos/open-data/ckanext-canada/deployments","created_at":"2012-12-12T19:34:43Z","updated_at":"2016-01-25T16:00:09Z","pushed_at":"2016-03-21T14:40:10Z","git_url":"git://github.com/open-data/ckanext-canada.git","ssh_url":"git@github.com:open-data/ckanext-canada.git","clone_url":"https://github.com/open-data/ckanext-canada.git","svn_url":"https://github.com/open-data/ckanext-canada","homepage":null,"size":14818,"stargazers_count":14,"watchers_count":14,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":25,"forks":13,"open_issues":25,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/open-data/ckanext-canada/pulls/629"},"html":{"href":"https://github.com/open-data/ckanext-canada/pull/629"},"issue":{"href":"https://api.github.com/repos/open-data/ckanext-canada/issues/629"},"comments":{"href":"https://api.github.com/repos/open-data/ckanext-canada/issues/629/comments"},"review_comments":{"href":"https://api.github.com/repos/open-data/ckanext-canada/pulls/629/comments"},"review_comment":{"href":"https://api.github.com/repos/open-data/ckanext-canada/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/open-data/ckanext-canada/pulls/629/commits"},"statuses":{"href":"https://api.github.com/repos/open-data/ckanext-canada/statuses/9bf9794e2e7fa75ac9bee6bc3cae18fc0dfbd1e8"}}}}