Пример #1
0
 def __init__(self, server="mod_python"):
     methods = ["echo", "reverse", "uppercase", "lowercase", "nonexistant"]
     if server == "mod_python":
         JSONProxy.__init__(self, "services/EchoService.py", methods)
     elif server == "flask":
         JSONProxy.__init__(
             self, "http://localhost:5000/json_echo/", methods)
Пример #2
0
 def __init__(self):
     if DEBUG == True :
         services = 'services/'
     else: 
         services = self.ROOT_URL
     JSONProxy.__init__(self, services, 
                        DataService.methods)
Пример #3
0
 def __init__(self):
     JSONProxy.__init__(self, '/admin/tickery',
         ['getQueueWidth', 'setQueueWidth', 'queueSize', 'queuePaused',
          'pause', 'resume', 'getQueued', 'getUnderway',
          'setMaxRequestsLimit', 'getMaxRequestsLimit',
          'setFriendsLimit', 'getFriendsLimit',
          'setResultsLimit', 'getResultsLimit', 'directAddUser',
          'bulkAddUsers', 'cancel'])
Пример #4
0
 def __init__(self):
     JSONProxy.__init__(self, "/JSON",
             ["login",
             "logout", "get_doc_types",
             "get_schema_version",
             "get_documents",
             "get_provider_inbox_data",
             "get_patient_messages",
             "doSomething",
             "search_patient"])
	def __init__(self):
		# Since this is a singleton, throw an exception if the constructor is called
		# explicitly.
		if GlibRPCService._onlyInstance!=None :
			raise Exception( "GlibRPCService is a singleton class. Call 'GlibRPCService.instance()' to get the only running instance" )
		JSONProxy.__init__(self, "services/GlibControlProxy.py", ["getStates","connectedCBCNames",
			"I2CRegisterValues","setI2CRegisterValues","saveI2cRegisterValues","loadI2cRegisterValues",
			"startProcesses","killProcesses","boardIsReachable",
			"stopTakingData","startSCurveRun","startOccupancyCheck","startTrimCalibration",
			"getDataTakingStatus","getOccupancies","createHistogram","saveHistograms"] )
Пример #6
0
 def __init__(self, server="mod_python", flask_view_type="function"):
     methods = ["echo", "reverse", "uppercase", "lowercase", "nonexistant"]
     if server == "mod_python":
         JSONProxy.__init__(self, "services/EchoService.py", methods)
     elif server == "flask":
         if(flask_view_type == "function"):
             JSONProxy.__init__(
                 self, "http://localhost:5000/json_echo/", methods)
         elif(flask_view_type == "class"):
             JSONProxy.__init__(
                 self, "http://localhost:5000/json_echo_class", methods)
         elif(flask_view_type == "celery"):
             methods.append("get_result")
             JSONProxy.__init__(
                 self, "http://localhost:5000/json_celery_class", methods)
Пример #7
0
 def __init__(self):
     JSONProxy.__init__(self, "SchoolCalendarService.php", ["getPeople"])
Пример #8
0
Файл: model.py Проект: Afey/pyjs
 def __init__(self):
     JSONProxy.__init__(self, "/services/", ["add_post",
         "get_posts", "update_post", "delete_post"])
Пример #9
0
 def __init__(self):
     JSONProxy.__init__(self, "/services/forms/", [
         "itemform",
     ])
Пример #10
0
 def __init__(self):
     JSONProxy.__init__(self, "No service name", ["YAML_echo", "YAML_AMS_Connect", "YAML_AMS_Comm_attach", "YAML_AMS_Comm_get_memory_list","YAML_AMS_Memory_attach","YAML_AMS_Memory_get_field_list","YAML_AMS_Memory_get_field_info"])
Пример #11
0
    def __init__(self):
		JSONProxy.__init__(self, 'services/', DataService.methods)
Пример #12
0
 def __init__(self):
     """ Constructs a new RegionNamesServicePython instance.
     """
     JSONProxy.__init__(self, "/json", ["get_geographical_region_names"])
Пример #13
0
 def __init__(self):
     JSONProxy.__init__(self, "/services/wanted/", ["getItem", "getItems"])
Пример #14
0
 def __init__(self):
     JSONProxy.__init__(self, "/maps/default/call/jsonrpc", ["getPoints"])
Пример #15
0
 def __init__(self):
     JSONProxy.__init__(self, 'process/')
Пример #16
0
	def __init__(self):
		JSONProxy.__init__(self, "../../default/call/jsonrpc",
												["getTasks", "addTask", "deleteTask"])
Пример #17
0
 def __init__(self):
     JSONProxy.__init__(self, "/json", ["buses"])
Пример #18
0
 def __init__(self):
         JSONProxy.__init__(self, "services/EchoService.py",
                 ["get_midpanel_data",
                  "get_rightpanel_datanames",
                  "get_rightpanel_data"])
Пример #19
0
 def __init__(self):
     JSONProxy.__init__(self, "/services/pages/", [
         "getPage", "updatePage", "getPages", "addPage", "getPageByName",
         "deletePage"
     ])
Пример #20
0
	def __init__(self):
		JSONProxy.__init__(self, "/Accession/json", ["echo", "reverse", "uppercase", "lowercase"])
Пример #21
0
 def __init__( self ):
     JSONProxy.__init__( self, "/services/mapservices", ["usernames", "points", "pointinfo", 'shakeevents'] )
Пример #22
0
 def __init__(self):
     JSONProxy.__init__(self, "/echo",
         ["echo", "reverse", "uppercase", "lowercase", "nonexistant"])
Пример #23
0
 def __init__(self):
     JSONProxy.__init__(self, "/RPC2", SchoolbellRPC.methods)
Пример #24
0
 def __init__(self):
     JSONProxy.__init__(self, "/services/pages/",
              ["getPage", "updatePage",
               "getPages", "addPage",
               "getPageByName",
               "deletePage"])
Пример #25
0
 def __init__(self):
     JSONProxy.__init__(self, "services/EchoService.py",
                                 ["index"])
Пример #26
0
 def __init__(self):
     JSONProxy.__init__(self, 'services/', DataService.methods, {'X-CSRFToken': getCookie('csrftoken')})
Пример #27
0
 def __init__(self):
     JSONProxy.__init__(self, "/services/forms/",
              ["itemform",
              ])
Пример #28
0
 def __init__(self):
     JSONProxy.__init__(self, "/services/", ["getAllSongs", "addSong", "deleteSong", "getSong"])
Пример #29
0
 def __init__(self):
     JSONProxy.__init__(self, "/services/wanted/",
              ["getItem", 
               "getItems"])
Пример #30
0
 def __init__(self):
     JSONProxy.__init__(self, "services/EchoService.py", ["echo", "reverse", "uppercase", "lowercase", "nonexistant"])
Пример #31
0
 def __init__(self):
     JSONProxy.__init__(self, '/tickery',
         ['nUsers', 'spideredScreennames', 'friendOf', 'intermediateQuery',
          'fluidDBQuery', 'simpleTweet',  'tweet', 'login', 'logout',
          'screenameFromCookie', 'friendsIds', 'follow', 'unfollow'])
Пример #32
0
	def __init__(self, url):
		JSONProxy.__init__(self, url, ["fetch"])
Пример #33
0
 def __init__(self):
     JSONProxy.__init__(self, '/json', ['find_one','insert'])
Пример #34
0
 def __init__(self):
     JSONProxy.__init__(self, "/obj/handler", ["call","methods"], True)
Пример #35
0
 def __init__(self):
     JSONProxy.__init__(self, "/obj/handler", ["call", "methods"], True)