{"action":"created","comment":{"url":"https://api.github.com/repos/indico/indico/pulls/comments/32711265","id":32711265,"diff_hunk":"@@ -148,35 +149,44 @@ def _setActiveSideMenuItem(self):\n     def _getPageContent(self, params):\n         return \"nothing\"\n \n+\n class WAdmins(wcomponents.WTemplated):\n \n-    def getVars( self ):\n-        vars = wcomponents.WTemplated.getVars( self )\n+    def getVars(self):\n+        wvars = wcomponents.WTemplated.getVars(self)\n         minfo = info.HelperMaKaCInfo.getMaKaCInfoInstance()\n-        vars[\"title\"] = minfo.getTitle()\n-        vars[\"organisation\"] = minfo.getOrganisation()\n-        vars['supportEmail'] = Config.getInstance().getSupportEmail()\n-        vars['publicSupportEmail'] = Config.getInstance().getPublicSupportEmail()\n-        vars['noReplyEmail'] = Config.getInstance().getNoReplyEmail()\n-        vars[\"lang\"] = minfo.getLang()\n-        vars[\"address\"] = \"\"\n+        wvars[\"title\"] = minfo.getTitle()\n+        wvars[\"organisation\"] = minfo.getOrganisation()\n+        wvars['supportEmail'] = Config.getInstance().getSupportEmail()\n+        wvars['publicSupportEmail'] = Config.getInstance().getPublicSupportEmail()\n+        wvars['noReplyEmail'] = Config.getInstance().getNoReplyEmail()\n+        wvars[\"lang\"] = minfo.getLang()\n+        wvars[\"address\"] = \"\"\n         if minfo.getCity() != \"\":\n-            vars[\"address\"] = minfo.getCity()\n+            wvars[\"address\"] = minfo.getCity()\n         if minfo.getCountry() != \"\":\n-            if vars[\"address\"] != \"\":\n-                vars[\"address\"] = \"%s (%s)\"%(vars[\"address\"], minfo.getCountry())\n+            if wvars[\"address\"] != \"\":\n+                wvars[\"address\"] = \"{0} ({1})\".format(wvars[\"address\"], minfo.getCountry())\n             else:\n-                vars[\"address\"] = \"%s\"%minfo.getCountry()\n-        vars[\"timezone\"] = Config.getInstance().getDefaultTimezone()\n-        vars[\"systemIconAdmins\"] = Config.getInstance().getSystemIconURL( \"admin\" )\n-        iconDisabled = str(Config.getInstance().getSystemIconURL( \"disabledSection\" ))\n-        iconEnabled = str(Config.getInstance().getSystemIconURL( \"enabledSection\" ))\n+                wvars[\"address\"] = \"{0}\".format(minfo.getCountry())","path":"indico/MaKaC/webinterface/pages/admins.py","position":67,"original_position":67,"commit_id":"59bfe8993c6c65b3b00a330a10fdc98cf5b1f657","original_commit_id":"59bfe8993c6c65b3b00a330a10fdc98cf5b1f657","user":{"login":"OmeGak","id":716307,"avatar_url":"https://avatars.githubusercontent.com/u/716307?v=3","gravatar_id":"","url":"https://api.github.com/users/OmeGak","html_url":"https://github.com/OmeGak","followers_url":"https://api.github.com/users/OmeGak/followers","following_url":"https://api.github.com/users/OmeGak/following{/other_user}","gists_url":"https://api.github.com/users/OmeGak/gists{/gist_id}","starred_url":"https://api.github.com/users/OmeGak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OmeGak/subscriptions","organizations_url":"https://api.github.com/users/OmeGak/orgs","repos_url":"https://api.github.com/users/OmeGak/repos","events_url":"https://api.github.com/users/OmeGak/events{/privacy}","received_events_url":"https://api.github.com/users/OmeGak/received_events","type":"User","site_admin":false},"body":"I think we are going for placeholders without numbering unless really necessary. `'{}'.format()` also works ;)","created_at":"2015-06-18T09:14:20Z","updated_at":"2015-06-18T09:14:20Z","html_url":"https://github.com/indico/indico/pull/1941#discussion_r32711265","pull_request_url":"https://api.github.com/repos/indico/indico/pulls/1941","_links":{"self":{"href":"https://api.github.com/repos/indico/indico/pulls/comments/32711265"},"html":{"href":"https://github.com/indico/indico/pull/1941#discussion_r32711265"},"pull_request":{"href":"https://api.github.com/repos/indico/indico/pulls/1941"}}},"pull_request":{"url":"https://api.github.com/repos/indico/indico/pulls/1941","id":37984985,"html_url":"https://github.com/indico/indico/pull/1941","diff_url":"https://github.com/indico/indico/pull/1941.diff","patch_url":"https://github.com/indico/indico/pull/1941.patch","issue_url":"https://api.github.com/repos/indico/indico/issues/1941","number":1941,"state":"open","locked":false,"title":"Initial setup, Community Hub and statistics improvements","user":{"login":"jacquesd","id":2848217,"avatar_url":"https://avatars.githubusercontent.com/u/2848217?v=3","gravatar_id":"","url":"https://api.github.com/users/jacquesd","html_url":"https://github.com/jacquesd","followers_url":"https://api.github.com/users/jacquesd/followers","following_url":"https://api.github.com/users/jacquesd/following{/other_user}","gists_url":"https://api.github.com/users/jacquesd/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquesd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquesd/subscriptions","organizations_url":"https://api.github.com/users/jacquesd/orgs","repos_url":"https://api.github.com/users/jacquesd/repos","events_url":"https://api.github.com/users/jacquesd/events{/privacy}","received_events_url":"https://api.github.com/users/jacquesd/received_events","type":"User","site_admin":false},"body":"- new `bootstrap` module for the initial setup\r\n- new `cephalopod` module for the Community Hub (Instance Tracking)\r\n- new macros and more generic client-side code for statistics\r\n- default options for jqplot\r\n- improved statistics client side code for categories and events' registrants (using the above)\r\n- new action boxes styles\r\n- badges list style improvements","created_at":"2015-06-18T09:04:10Z","updated_at":"2015-06-18T09:14:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"04566096b3fca941e5f5447bddecc795d46089ed","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/indico/indico/pulls/1941/commits","review_comments_url":"https://api.github.com/repos/indico/indico/pulls/1941/comments","review_comment_url":"https://api.github.com/repos/indico/indico/pulls/comments{/number}","comments_url":"https://api.github.com/repos/indico/indico/issues/1941/comments","statuses_url":"https://api.github.com/repos/indico/indico/statuses/59bfe8993c6c65b3b00a330a10fdc98cf5b1f657","head":{"label":"jacquesd:fix-initial-setup-instance-tracking","ref":"fix-initial-setup-instance-tracking","sha":"59bfe8993c6c65b3b00a330a10fdc98cf5b1f657","user":{"login":"jacquesd","id":2848217,"avatar_url":"https://avatars.githubusercontent.com/u/2848217?v=3","gravatar_id":"","url":"https://api.github.com/users/jacquesd","html_url":"https://github.com/jacquesd","followers_url":"https://api.github.com/users/jacquesd/followers","following_url":"https://api.github.com/users/jacquesd/following{/other_user}","gists_url":"https://api.github.com/users/jacquesd/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquesd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquesd/subscriptions","organizations_url":"https://api.github.com/users/jacquesd/orgs","repos_url":"https://api.github.com/users/jacquesd/repos","events_url":"https://api.github.com/users/jacquesd/events{/privacy}","received_events_url":"https://api.github.com/users/jacquesd/received_events","type":"User","site_admin":false},"repo":{"id":23547375,"name":"indico","full_name":"jacquesd/indico","owner":{"login":"jacquesd","id":2848217,"avatar_url":"https://avatars.githubusercontent.com/u/2848217?v=3","gravatar_id":"","url":"https://api.github.com/users/jacquesd","html_url":"https://github.com/jacquesd","followers_url":"https://api.github.com/users/jacquesd/followers","following_url":"https://api.github.com/users/jacquesd/following{/other_user}","gists_url":"https://api.github.com/users/jacquesd/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquesd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquesd/subscriptions","organizations_url":"https://api.github.com/users/jacquesd/orgs","repos_url":"https://api.github.com/users/jacquesd/repos","events_url":"https://api.github.com/users/jacquesd/events{/privacy}","received_events_url":"https://api.github.com/users/jacquesd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jacquesd/indico","description":"The Indico Project","fork":true,"url":"https://api.github.com/repos/jacquesd/indico","forks_url":"https://api.github.com/repos/jacquesd/indico/forks","keys_url":"https://api.github.com/repos/jacquesd/indico/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jacquesd/indico/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jacquesd/indico/teams","hooks_url":"https://api.github.com/repos/jacquesd/indico/hooks","issue_events_url":"https://api.github.com/repos/jacquesd/indico/issues/events{/number}","events_url":"https://api.github.com/repos/jacquesd/indico/events","assignees_url":"https://api.github.com/repos/jacquesd/indico/assignees{/user}","branches_url":"https://api.github.com/repos/jacquesd/indico/branches{/branch}","tags_url":"https://api.github.com/repos/jacquesd/indico/tags","blobs_url":"https://api.github.com/repos/jacquesd/indico/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jacquesd/indico/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jacquesd/indico/git/refs{/sha}","trees_url":"https://api.github.com/repos/jacquesd/indico/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jacquesd/indico/statuses/{sha}","languages_url":"https://api.github.com/repos/jacquesd/indico/languages","stargazers_url":"https://api.github.com/repos/jacquesd/indico/stargazers","contributors_url":"https://api.github.com/repos/jacquesd/indico/contributors","subscribers_url":"https://api.github.com/repos/jacquesd/indico/subscribers","subscription_url":"https://api.github.com/repos/jacquesd/indico/subscription","commits_url":"https://api.github.com/repos/jacquesd/indico/commits{/sha}","git_commits_url":"https://api.github.com/repos/jacquesd/indico/git/commits{/sha}","comments_url":"https://api.github.com/repos/jacquesd/indico/comments{/number}","issue_comment_url":"https://api.github.com/repos/jacquesd/indico/issues/comments{/number}","contents_url":"https://api.github.com/repos/jacquesd/indico/contents/{+path}","compare_url":"https://api.github.com/repos/jacquesd/indico/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jacquesd/indico/merges","archive_url":"https://api.github.com/repos/jacquesd/indico/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jacquesd/indico/downloads","issues_url":"https://api.github.com/repos/jacquesd/indico/issues{/number}","pulls_url":"https://api.github.com/repos/jacquesd/indico/pulls{/number}","milestones_url":"https://api.github.com/repos/jacquesd/indico/milestones{/number}","notifications_url":"https://api.github.com/repos/jacquesd/indico/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jacquesd/indico/labels{/name}","releases_url":"https://api.github.com/repos/jacquesd/indico/releases{/id}","created_at":"2014-09-01T15:38:51Z","updated_at":"2015-04-30T16:51:49Z","pushed_at":"2015-06-18T09:14:12Z","git_url":"git://github.com/jacquesd/indico.git","ssh_url":"git@github.com:jacquesd/indico.git","clone_url":"https://github.com/jacquesd/indico.git","svn_url":"https://github.com/jacquesd/indico","homepage":"http://indico-software.org","size":182066,"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":"indico:master","ref":"master","sha":"6a81d87d681c428c112e4550b10097012fd599c5","user":{"login":"indico","id":715236,"avatar_url":"https://avatars.githubusercontent.com/u/715236?v=3","gravatar_id":"","url":"https://api.github.com/users/indico","html_url":"https://github.com/indico","followers_url":"https://api.github.com/users/indico/followers","following_url":"https://api.github.com/users/indico/following{/other_user}","gists_url":"https://api.github.com/users/indico/gists{/gist_id}","starred_url":"https://api.github.com/users/indico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indico/subscriptions","organizations_url":"https://api.github.com/users/indico/orgs","repos_url":"https://api.github.com/users/indico/repos","events_url":"https://api.github.com/users/indico/events{/privacy}","received_events_url":"https://api.github.com/users/indico/received_events","type":"Organization","site_admin":false},"repo":{"id":2113067,"name":"indico","full_name":"indico/indico","owner":{"login":"indico","id":715236,"avatar_url":"https://avatars.githubusercontent.com/u/715236?v=3","gravatar_id":"","url":"https://api.github.com/users/indico","html_url":"https://github.com/indico","followers_url":"https://api.github.com/users/indico/followers","following_url":"https://api.github.com/users/indico/following{/other_user}","gists_url":"https://api.github.com/users/indico/gists{/gist_id}","starred_url":"https://api.github.com/users/indico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indico/subscriptions","organizations_url":"https://api.github.com/users/indico/orgs","repos_url":"https://api.github.com/users/indico/repos","events_url":"https://api.github.com/users/indico/events{/privacy}","received_events_url":"https://api.github.com/users/indico/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/indico/indico","description":"The Indico Project","fork":false,"url":"https://api.github.com/repos/indico/indico","forks_url":"https://api.github.com/repos/indico/indico/forks","keys_url":"https://api.github.com/repos/indico/indico/keys{/key_id}","collaborators_url":"https://api.github.com/repos/indico/indico/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/indico/indico/teams","hooks_url":"https://api.github.com/repos/indico/indico/hooks","issue_events_url":"https://api.github.com/repos/indico/indico/issues/events{/number}","events_url":"https://api.github.com/repos/indico/indico/events","assignees_url":"https://api.github.com/repos/indico/indico/assignees{/user}","branches_url":"https://api.github.com/repos/indico/indico/branches{/branch}","tags_url":"https://api.github.com/repos/indico/indico/tags","blobs_url":"https://api.github.com/repos/indico/indico/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/indico/indico/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/indico/indico/git/refs{/sha}","trees_url":"https://api.github.com/repos/indico/indico/git/trees{/sha}","statuses_url":"https://api.github.com/repos/indico/indico/statuses/{sha}","languages_url":"https://api.github.com/repos/indico/indico/languages","stargazers_url":"https://api.github.com/repos/indico/indico/stargazers","contributors_url":"https://api.github.com/repos/indico/indico/contributors","subscribers_url":"https://api.github.com/repos/indico/indico/subscribers","subscription_url":"https://api.github.com/repos/indico/indico/subscription","commits_url":"https://api.github.com/repos/indico/indico/commits{/sha}","git_commits_url":"https://api.github.com/repos/indico/indico/git/commits{/sha}","comments_url":"https://api.github.com/repos/indico/indico/comments{/number}","issue_comment_url":"https://api.github.com/repos/indico/indico/issues/comments{/number}","contents_url":"https://api.github.com/repos/indico/indico/contents/{+path}","compare_url":"https://api.github.com/repos/indico/indico/compare/{base}...{head}","merges_url":"https://api.github.com/repos/indico/indico/merges","archive_url":"https://api.github.com/repos/indico/indico/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/indico/indico/downloads","issues_url":"https://api.github.com/repos/indico/indico/issues{/number}","pulls_url":"https://api.github.com/repos/indico/indico/pulls{/number}","milestones_url":"https://api.github.com/repos/indico/indico/milestones{/number}","notifications_url":"https://api.github.com/repos/indico/indico/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/indico/indico/labels{/name}","releases_url":"https://api.github.com/repos/indico/indico/releases{/id}","created_at":"2011-07-27T13:56:30Z","updated_at":"2015-06-08T13:02:35Z","pushed_at":"2015-06-18T09:14:12Z","git_url":"git://github.com/indico/indico.git","ssh_url":"git@github.com:indico/indico.git","clone_url":"https://github.com/indico/indico.git","svn_url":"https://github.com/indico/indico","homepage":"http://indico-software.org","size":205266,"stargazers_count":91,"watchers_count":91,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":51,"mirror_url":null,"open_issues_count":489,"forks":51,"open_issues":489,"watchers":91,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/indico/indico/pulls/1941"},"html":{"href":"https://github.com/indico/indico/pull/1941"},"issue":{"href":"https://api.github.com/repos/indico/indico/issues/1941"},"comments":{"href":"https://api.github.com/repos/indico/indico/issues/1941/comments"},"review_comments":{"href":"https://api.github.com/repos/indico/indico/pulls/1941/comments"},"review_comment":{"href":"https://api.github.com/repos/indico/indico/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/indico/indico/pulls/1941/commits"},"statuses":{"href":"https://api.github.com/repos/indico/indico/statuses/59bfe8993c6c65b3b00a330a10fdc98cf5b1f657"}}}}