from pyjamas.JSONService import JSONProxy
class RemoteService(JSONProxy):
def __init__(self):
JSONProxy.__init__(self, "http://127.0.0.1:8000/json/",
["clients.getAll",
])
class LeftPanel(StackPanel):
'''
classdocs
'''
def __init__(self):
'''
Constructor
'''
StackPanel.__init__(self)
##...........
self.json_service = RemoteService()
def onClientsItemSelected(self, event):
print "select!"
self.json_service.clients.getAll()
def onRemoteResponse(self, response, request_info):
print "responce"
self.add(HTML("response: "+response))
def onRemoteError(self, code, message, request_info):
print "error"
self.add(HTML("error: "+message))
джанга по адресу http://127.0.0.1:8000/json/ по методу “clients.getAll” отдает, проверял
в чем собака зарыта?