{"action":"created","issue":{"url":"https://api.github.com/repos/tableau/server-client-python/issues/116","repository_url":"https://api.github.com/repos/tableau/server-client-python","labels_url":"https://api.github.com/repos/tableau/server-client-python/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/tableau/server-client-python/issues/116/comments","events_url":"https://api.github.com/repos/tableau/server-client-python/issues/116/events","html_url":"https://github.com/tableau/server-client-python/issues/116","id":197246975,"number":116,"title":"Proposal: Register XML Namespace globally","user":{"login":"t8y8","id":4370533,"avatar_url":"https://avatars.githubusercontent.com/u/4370533?v=3","gravatar_id":"","url":"https://api.github.com/users/t8y8","html_url":"https://github.com/t8y8","followers_url":"https://api.github.com/users/t8y8/followers","following_url":"https://api.github.com/users/t8y8/following{/other_user}","gists_url":"https://api.github.com/users/t8y8/gists{/gist_id}","starred_url":"https://api.github.com/users/t8y8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t8y8/subscriptions","organizations_url":"https://api.github.com/users/t8y8/orgs","repos_url":"https://api.github.com/users/t8y8/repos","events_url":"https://api.github.com/users/t8y8/events{/privacy}","received_events_url":"https://api.github.com/users/t8y8/received_events","type":"User","site_admin":false},"labels":[{"id":468659731,"url":"https://api.github.com/repos/tableau/server-client-python/labels/Design%20Proposal","name":"Design Proposal","color":"5319e7","default":false},{"id":399989318,"url":"https://api.github.com/repos/tableau/server-client-python/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-22T19:13:42Z","updated_at":"2016-12-27T21:30:37Z","closed_at":"2016-12-27T21:30:37Z","body":"Currently, the SCL has a namespace.py file that imports a dictionary that we pass into every single xml query we make.\r\n\r\nPython 2.7 and 3.2+ have a function called `register_namespace` that I *think* we can use to register once (at import time?) and then clean up all those calls around the library.\r\n\r\nLink: https://docs.python.org/3.6/library/xml.etree.elementtree.html#xml.etree.ElementTree.register_namespace\r\n\r\nIt also makes it less likely that someone forgets or typos the namespace dictionary.\r\n\r\nNote: I have NOT tested this yet, but I will!"},"comment":{"url":"https://api.github.com/repos/tableau/server-client-python/issues/comments/269385426","html_url":"https://github.com/tableau/server-client-python/issues/116#issuecomment-269385426","issue_url":"https://api.github.com/repos/tableau/server-client-python/issues/116","id":269385426,"user":{"login":"t8y8","id":4370533,"avatar_url":"https://avatars.githubusercontent.com/u/4370533?v=3","gravatar_id":"","url":"https://api.github.com/users/t8y8","html_url":"https://github.com/t8y8","followers_url":"https://api.github.com/users/t8y8/followers","following_url":"https://api.github.com/users/t8y8/following{/other_user}","gists_url":"https://api.github.com/users/t8y8/gists{/gist_id}","starred_url":"https://api.github.com/users/t8y8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t8y8/subscriptions","organizations_url":"https://api.github.com/users/t8y8/orgs","repos_url":"https://api.github.com/users/t8y8/repos","events_url":"https://api.github.com/users/t8y8/events{/privacy}","received_events_url":"https://api.github.com/users/t8y8/received_events","type":"User","site_admin":false},"created_at":"2016-12-27T21:30:37Z","updated_at":"2016-12-27T21:30:37Z","body":"Ok, confirmed, that's only for serialization. Find/findall need the parameter passed in.\r\n\r\nSad.\r\n\r\nSource: http://stackoverflow.com/questions/14853243/parsing-xml-with-namespace-in-python-via-elementtree"}}
{"actor":{"display_login":"t8y8"}}