![]() Print "'error' = False\nlook at the WeaveModule. Print "\n-\nWeave Services Manipulated Successfully\n-\n" Modifying this Service"Īrcpy.StopStartService_ToolboxServerAdminToolkit(Server_Name, Port, Admin_User, Admin_Password, stopORstart, Service_List ) Print Service_List + " is set to " + Service_List + ". Print "\nNeeded 'Stop' or 'Start' passed through, instead this was received: " + stopORstart + "\n"įor x in xrange(0,len(service)): # this code manipulates the Service_List to be either zero (dont run) or one (run)įor x in xrange(0,len(service)): # this starts or stops the appropriate services, as defined by the services string If error = False: # error checking, this wont run unless the above test completes Print "Error in 'service' length: %s\nShould be = : %s" % (len(service),len(Service_List)) Print "'service' all good, either a zero or one: %s" % (service ) Print "'service' not in the format of zero and ones: %s" % (service ) If (int(service ) != 0) and (int(service ) != 1): ![]() If len(service) = len(Service_List): # this loop is for checking of the input 'service' It needs to conform to the format of 5 digits (zeros or ones) to run correctly Here is the code of the function throwing the error: - specifically line 4, arcpy.ImportToolbox() def stopStart(stopORstart,service): # set service to be '11111' to stop them all.Īrcpy.ImportToolbox(r"Database List of services to stop/start ![]() I doubt you’ll need to give away your privacy credentials. If it helps, my (id) full name, my phone number, my city and my country are engraved on the back of the iPod, proving its indeed mine. If you guys have ANY suggestions I would really appreciate it. I have double and even triple checked this directory, and the toolkit most definitely resides in this location, please see evidence of this in the below screen grab: Ive found something about gecko toolkit, but it only works up to 4th gen. I am unsure why the below sequence is occurring, I am completely stuck and unsure how to resolve. I have a py script that calls a function from another py script, and I am getting the below error: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |