{"action":"created","issue":{"url":"https://api.github.com/repos/python-excel/xlwt/issues/54","labels_url":"https://api.github.com/repos/python-excel/xlwt/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/python-excel/xlwt/issues/54/comments","events_url":"https://api.github.com/repos/python-excel/xlwt/issues/54/events","html_url":"https://github.com/python-excel/xlwt/pull/54","id":39104494,"number":54,"title":"Allows get sheet or sheet index by sheet name","user":{"login":"fabiofsilva","id":2944982,"avatar_url":"https://avatars.githubusercontent.com/u/2944982?v=3","gravatar_id":"","url":"https://api.github.com/users/fabiofsilva","html_url":"https://github.com/fabiofsilva","followers_url":"https://api.github.com/users/fabiofsilva/followers","following_url":"https://api.github.com/users/fabiofsilva/following{/other_user}","gists_url":"https://api.github.com/users/fabiofsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/fabiofsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabiofsilva/subscriptions","organizations_url":"https://api.github.com/users/fabiofsilva/orgs","repos_url":"https://api.github.com/users/fabiofsilva/repos","events_url":"https://api.github.com/users/fabiofsilva/events{/privacy}","received_events_url":"https://api.github.com/users/fabiofsilva/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-07-30T15:31:30Z","updated_at":"2015-04-13T16:31:11Z","closed_at":"2015-04-13T16:31:11Z","pull_request":{"url":"https://api.github.com/repos/python-excel/xlwt/pulls/54","html_url":"https://github.com/python-excel/xlwt/pull/54","diff_url":"https://github.com/python-excel/xlwt/pull/54.diff","patch_url":"https://github.com/python-excel/xlwt/pull/54.patch"},"body":"This patch adds a new 'sheet index' and 'get sheet_by_name' function on the Workbook. Sometimes I need the sheet index to set the active sheet before save the document. The function get_sheet_by_name, simulates the behavior of oppenoffice that returns a sheet by name."},"comment":{"url":"https://api.github.com/repos/python-excel/xlwt/issues/comments/92418647","html_url":"https://github.com/python-excel/xlwt/pull/54#issuecomment-92418647","issue_url":"https://api.github.com/repos/python-excel/xlwt/issues/54","id":92418647,"user":{"login":"cjw296","id":632049,"avatar_url":"https://avatars.githubusercontent.com/u/632049?v=3","gravatar_id":"","url":"https://api.github.com/users/cjw296","html_url":"https://github.com/cjw296","followers_url":"https://api.github.com/users/cjw296/followers","following_url":"https://api.github.com/users/cjw296/following{/other_user}","gists_url":"https://api.github.com/users/cjw296/gists{/gist_id}","starred_url":"https://api.github.com/users/cjw296/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjw296/subscriptions","organizations_url":"https://api.github.com/users/cjw296/orgs","repos_url":"https://api.github.com/users/cjw296/repos","events_url":"https://api.github.com/users/cjw296/events{/privacy}","received_events_url":"https://api.github.com/users/cjw296/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T16:31:11Z","updated_at":"2015-04-13T16:31:11Z","body":"I'd prefer to see get_sheet become polymorphic and return by index if an integer is passed and by name if a string is passed.\r\n\r\nNo objection to a method called  get_sheet_index.\r\n\r\nYou'll likely need to rebase now that python 3 support has landed."}}