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


Python JSONProxy.__init__方法代码示例

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


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

示例1: __init__

# 需要导入模块: from pyjamas.JSONService import JSONProxy [as 别名]
# 或者: from pyjamas.JSONService.JSONProxy import __init__ [as 别名]
 def __init__(self):
     if DEBUG == True :
         services = 'services/'
     else: 
         services = self.ROOT_URL
     JSONProxy.__init__(self, services, 
                        DataService.methods)
开发者ID:mileskin,项目名称:ots-mirror,代码行数:9,代码来源:testrun_timedeltas.py

示例2: __init__

# 需要导入模块: from pyjamas.JSONService import JSONProxy [as 别名]
# 或者: from pyjamas.JSONService.JSONProxy import __init__ [as 别名]
 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,代码行数:9,代码来源:Flask_JSONRPC_CORS.py

示例3: __init__

# 需要导入模块: from pyjamas.JSONService import JSONProxy [as 别名]
# 或者: from pyjamas.JSONService.JSONProxy import __init__ [as 别名]
 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,代码行数:10,代码来源:server.py

示例4: __init__

# 需要导入模块: from pyjamas.JSONService import JSONProxy [as 别名]
# 或者: from pyjamas.JSONService.JSONProxy import __init__ [as 别名]
 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,代码行数:12,代码来源:Remote.py

示例5: __init__

# 需要导入模块: from pyjamas.JSONService import JSONProxy [as 别名]
# 或者: from pyjamas.JSONService.JSONProxy import __init__ [as 别名]
	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,代码行数:12,代码来源:GlibRPCService.py

示例6: __init__

# 需要导入模块: from pyjamas.JSONService import JSONProxy [as 别名]
# 或者: from pyjamas.JSONService.JSONProxy import __init__ [as 别名]
 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,代码行数:17,代码来源:FLASKCELERYExample.py

示例7: __init__

# 需要导入模块: from pyjamas.JSONService import JSONProxy [as 别名]
# 或者: from pyjamas.JSONService.JSONProxy import __init__ [as 别名]
 def __init__(self):
     JSONProxy.__init__(self, "/services/pages/",
              ["getPage", "updatePage",
               "getPages", "addPage",
               "getPageByName",
               "deletePage"])
开发者ID:Afey,项目名称:pyjs,代码行数:8,代码来源:WebPage.py

示例8: __init__

# 需要导入模块: from pyjamas.JSONService import JSONProxy [as 别名]
# 或者: from pyjamas.JSONService.JSONProxy import __init__ [as 别名]
	def __init__(self):
		JSONProxy.__init__(self, "../../default/call/jsonrpc",
												["getTasks", "addTask", "deleteTask"])
开发者ID:iepathos,项目名称:graykoolaid,代码行数:5,代码来源:gray.py

示例9: __init__

# 需要导入模块: from pyjamas.JSONService import JSONProxy [as 别名]
# 或者: from pyjamas.JSONService.JSONProxy import __init__ [as 别名]
 def __init__(self):
     JSONProxy.__init__(self, "/echo",
         ["echo", "reverse", "uppercase", "lowercase", "nonexistant"])
开发者ID:jwashin,项目名称:pj_pyramid_appengine,代码行数:5,代码来源:JSONRPCExample.py

示例10: __init__

# 需要导入模块: from pyjamas.JSONService import JSONProxy [as 别名]
# 或者: from pyjamas.JSONService.JSONProxy import __init__ [as 别名]
 def __init__(self):
     JSONProxy.__init__(self, "/maps/default/call/jsonrpc", ["getPoints"])
开发者ID:Afey,项目名称:pyjs,代码行数:4,代码来源:oldExample.py

示例11: __init__

# 需要导入模块: from pyjamas.JSONService import JSONProxy [as 别名]
# 或者: from pyjamas.JSONService.JSONProxy import __init__ [as 别名]
 def __init__( self ):
     JSONProxy.__init__( self, "/services/mapservices", ["usernames", "points", "pointinfo", 'shakeevents'] )
开发者ID:jackdreilly,项目名称:iShakeBackend,代码行数:4,代码来源:EventSimple.py

示例12: __init__

# 需要导入模块: from pyjamas.JSONService import JSONProxy [as 别名]
# 或者: from pyjamas.JSONService.JSONProxy import __init__ [as 别名]
 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"])
开发者ID:erdc-cm,项目名称:petsc-dev,代码行数:4,代码来源:AMSJavascript.py

示例13: __init__

# 需要导入模块: from pyjamas.JSONService import JSONProxy [as 别名]
# 或者: from pyjamas.JSONService.JSONProxy import __init__ [as 别名]
    def __init__(self):
		JSONProxy.__init__(self, 'services/', DataService.methods)
开发者ID:cy245,项目名称:TextbookConnect,代码行数:4,代码来源:search_resultst.py

示例14: __init__

# 需要导入模块: from pyjamas.JSONService import JSONProxy [as 别名]
# 或者: from pyjamas.JSONService.JSONProxy import __init__ [as 别名]
 def __init__(self):
     JSONProxy.__init__(self, '/json', ['find_one','insert'])
开发者ID:brodybits,项目名称:pyjs,代码行数:4,代码来源:Wiki.py

示例15: __init__

# 需要导入模块: from pyjamas.JSONService import JSONProxy [as 别名]
# 或者: from pyjamas.JSONService.JSONProxy import __init__ [as 别名]
 def __init__(self):
     JSONProxy.__init__(self, '/tickery',
         ['nUsers', 'spideredScreennames', 'friendOf', 'intermediateQuery',
          'fluidDBQuery', 'simpleTweet',  'tweet', 'login', 'logout',
          'screenameFromCookie', 'friendsIds', 'follow', 'unfollow'])
开发者ID:jdunck,项目名称:Tickery,代码行数:7,代码来源:server.py


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