当前位置: 首页>>代码示例>>Python>>正文


Python JSONService.JSONProxy类代码示例

本文整理汇总了Python中pyjamas.JSONService.JSONProxy的典型用法代码示例。如果您正苦于以下问题:Python JSONProxy类的具体用法?Python JSONProxy怎么用?Python JSONProxy使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了JSONProxy类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

 def __init__(self):
     if DEBUG == True :
         services = 'services/'
     else: 
         services = self.ROOT_URL
     JSONProxy.__init__(self, services, 
                        DataService.methods)
开发者ID:mileskin,项目名称:ots-mirror,代码行数:7,代码来源:testrun_timedeltas.py

示例2: __init__

 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)
开发者ID:brodybits,项目名称:pyjs,代码行数:7,代码来源:Flask_JSONRPC_CORS.py

示例3: __init__

 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'])
开发者ID:fluidinfo,项目名称:Tickery,代码行数:8,代码来源:server.py

示例4: __init__

 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"])
开发者ID:ncqgm,项目名称:gnumed,代码行数:10,代码来源:Remote.py

示例5: __init__

	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"] )
开发者ID:BristolHEP-CBC-Testing,项目名称:cbcanalysis,代码行数:10,代码来源:GlibRPCService.py

示例6: onModuleLoad

    def onModuleLoad(self):
        self.TEXT_WAITING = "Waiting for response..."
        self.TEXT_ERROR = "Server Error"

        self.remote = JSONProxy("../api", ["hello"])

        self.status = Label()
        self.text_box = TextBox()

        self.button_send = Button("Send", self)

        buttons = HorizontalPanel()
        buttons.add(self.button_send)
        buttons.setSpacing(8)

        info = """<h2>JSON-RPC Example</h2>
        <p>This example demonstrates the calling of server services with
           <a href="http://json-rpc.org/">JSON-RPC</a>.
        </p>
        <p>Enter your name below.</p>"""

        panel = VerticalPanel()
        panel.add(HTML(info))
        panel.add(self.text_box)
        #panel.add(method_panel)
        panel.add(buttons)
        panel.add(self.status)

        RootPanel().add(panel)
开发者ID:nealie,项目名称:brubeck,代码行数:29,代码来源:JSONRPCExample.py

示例7: __init__

 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)
开发者ID:brodybits,项目名称:pyjs,代码行数:15,代码来源:FLASKCELERYExample.py

示例8: __init__

 def __init__(self):
     JSONProxy.__init__(self, 'services/', DataService.methods, {'X-CSRFToken': getCookie('csrftoken')})
开发者ID:fedenko,项目名称:StockWatcher2,代码行数:2,代码来源:StockWatcher.py

示例9: __init__

 def __init__(self):
     JSONProxy.__init__(self, "/services/pages/",
              ["getPage", "updatePage",
               "getPages", "addPage",
               "getPageByName",
               "deletePage"])
开发者ID:Afey,项目名称:pyjs,代码行数:6,代码来源:WebPage.py

示例10: __init__

 def __init__(self):
     """ Constructs a new RegionNamesServicePython instance.
     """
     JSONProxy.__init__(self, "/json", ["get_geographical_region_names"])
开发者ID:ResearchEngr,项目名称:openpowersystem,代码行数:4,代码来源:edit_panel.py

示例11: __init__

 def __init__(self):
     JSONProxy.__init__(self, "/echo",
         ["echo", "reverse", "uppercase", "lowercase", "nonexistant"])
开发者ID:jwashin,项目名称:pj_pyramid_appengine,代码行数:3,代码来源:JSONRPCExample.py

示例12: __init__

 def __init__(self):
     JSONProxy.__init__(self, "/RPC2", SchoolbellRPC.methods)
开发者ID:christophgysin,项目名称:schoolbell,代码行数:2,代码来源:rpc.py

示例13: __init__

 def __init__( self ):
     JSONProxy.__init__( self, "/services/mapservices", ["usernames", "points", "pointinfo", 'shakeevents'] )
开发者ID:jackdreilly,项目名称:iShakeBackend,代码行数:2,代码来源:EventSimple.py

示例14: __init__

 def __init__(self):
     JSONProxy.__init__(self, "/maps/default/call/jsonrpc", ["getPoints"])
开发者ID:Afey,项目名称:pyjs,代码行数:2,代码来源:oldExample.py

示例15: __init__

    def __init__(self):
		JSONProxy.__init__(self, 'services/', DataService.methods)
开发者ID:cy245,项目名称:TextbookConnect,代码行数:2,代码来源:search_resultst.py


注:本文中的pyjamas.JSONService.JSONProxy类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。