{"action":"created","issue":{"url":"https://api.github.com/repos/Esri/ArcREST/issues/290","repository_url":"https://api.github.com/repos/Esri/ArcREST","labels_url":"https://api.github.com/repos/Esri/ArcREST/issues/290/labels{/name}","comments_url":"https://api.github.com/repos/Esri/ArcREST/issues/290/comments","events_url":"https://api.github.com/repos/Esri/ArcREST/issues/290/events","html_url":"https://github.com/Esri/ArcREST/issues/290","id":173812064,"number":290,"title":"attribute not implemented manageags.AGSAdministration","user":{"login":"ckel490","id":21314366,"avatar_url":"https://avatars.githubusercontent.com/u/21314366?v=3","gravatar_id":"","url":"https://api.github.com/users/ckel490","html_url":"https://github.com/ckel490","followers_url":"https://api.github.com/users/ckel490/followers","following_url":"https://api.github.com/users/ckel490/following{/other_user}","gists_url":"https://api.github.com/users/ckel490/gists{/gist_id}","starred_url":"https://api.github.com/users/ckel490/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckel490/subscriptions","organizations_url":"https://api.github.com/users/ckel490/orgs","repos_url":"https://api.github.com/users/ckel490/repos","events_url":"https://api.github.com/users/ckel490/events{/privacy}","received_events_url":"https://api.github.com/users/ckel490/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-08-29T16:13:40Z","updated_at":"2016-09-01T13:37:45Z","closed_at":null,"body":"ArcRest or ArcRestHelper\r\n\r\nArcRest\r\n\r\nVersion or date of download\r\n\r\n8/20/2016\r\n\r\nBug or Enhancement\r\n\r\nMore question than either\r\n\r\nRepo Steps or Enhancement details\r\n\r\nI am succesfully accessing the services on our Dev ArcGIS Server through manageags, but when I try to access our Production server, I get the following when I type ags.resources:\r\n\r\nstatus - attribute not implemented manageags.AGSAdministration.\r\n code - attribute not implemented manageags.AGSAdministration.\r\n messages - attribute not implemented manageags.AGSAdministration.\r\n\r\nIs there a setting on the Server that I need to change?\r\n\r\nHere's the code below:\r\n\r\nAsk for admin/publisher user name and password\r\n\r\nenv = raw_input(\"Enter Envrionemnt, dev or prod: \")\r\n ##username = raw_input(\"Enter user name: \")\r\n username = \"siteadmin\"\r\n password = getpass.getpass(\"Enter password: \")\r\n\r\nif env == 'dev':\r\n admin_url = r\"http://[servername]:6080/arcgis/admin\"\r\n elif env == 'prod':\r\n admin_url = r\"http://[servername]:6080/arcgis/admin/\"\r\n\r\n#Create Security Handler\r\n sh= arcrest.AGSTokenSecurityHandler(username = username,password = password,org_url = admin_url)\r\n #Create ArcGIS Server REST API Wrapper\r\n ags = arcrest.manageags.AGSAdministration(admin_url,sh)\r\n"},"comment":{"url":"https://api.github.com/repos/Esri/ArcREST/issues/comments/244080847","html_url":"https://github.com/Esri/ArcREST/issues/290#issuecomment-244080847","issue_url":"https://api.github.com/repos/Esri/ArcREST/issues/290","id":244080847,"user":{"login":"sloanlance","id":17595351,"avatar_url":"https://avatars.githubusercontent.com/u/17595351?v=3","gravatar_id":"","url":"https://api.github.com/users/sloanlance","html_url":"https://github.com/sloanlance","followers_url":"https://api.github.com/users/sloanlance/followers","following_url":"https://api.github.com/users/sloanlance/following{/other_user}","gists_url":"https://api.github.com/users/sloanlance/gists{/gist_id}","starred_url":"https://api.github.com/users/sloanlance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sloanlance/subscriptions","organizations_url":"https://api.github.com/users/sloanlance/orgs","repos_url":"https://api.github.com/users/sloanlance/repos","events_url":"https://api.github.com/users/sloanlance/events{/privacy}","received_events_url":"https://api.github.com/users/sloanlance/received_events","type":"User","site_admin":false},"created_at":"2016-09-01T13:37:45Z","updated_at":"2016-09-01T13:37:45Z","body":"@achapkowski, the [PyPI entry for urlnorm](https://pypi.python.org/pypi/urlnorm) says it uses an MIT license.  Its [`setup.py` and main class file on GitHub](https://github.com/jehiah/urlnorm/search?q=license) also mention it, although they don't have a `LICENSE` file.  I don't know whether that license is compatible with ArcREST's, though.  If urlnorm can't be used, at least it could be inspiration for improved URL handling in this project.  I learned a few good solutions for URL handling before I found urlnorm and started using it instead.\r\n\r\nWRT urllib vs. requests, does this project intend to not force other dependencies on its users?  It only requires six (bundled) and numpy (external; BSD license) now.  I think requests offers so many improvements over requests, it would improve the robustness of this project.  It may be a bit of a leap to switch to the other module, for sure.  An alternative is to use requests if it's installed, but work with urllib if that's all that's available.  Making ArcREST work with either could make the code a little more complex, though.\r\n"}}
{"actor":{"display_login":"sloanlance"}}