arcpy/AdministeringArcGISServerwithPython_DS2014 — pull request #1 by DrewQuartic (2014-04-08 22:02:19+00:00)
Title: added functions to main class

*This might have been doable already but I couldn't figure out how
without editing the source script*.

I added most of the helper functions to the ADMINCON class so that they
can take advantage of the local connection properties. This makes the
class callable from other scripts without editing the source. e.g.

import AdminFunctions
con = AdminFunctions.ADMINCON('ddowling','PW','myserver',6080)
services = con.getServiceList()
folders = con.getFolders()
services = con.getServiceList()
con.stopStartServices('Stop', services)

*Let me know what you think.*