PageRenderTime 13ms CodeModel.GetById 10ms RepoModel.GetById 1ms app.codeStats 0ms

/examples/jsonrpc/public/services/EchoService.py

http://pyjamas.googlecode.com/
Python | 20 lines | 11 code | 8 blank | 1 comment | 0 complexity | a3772aa9f2de7d945a595d454015067d MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0
  1. #!/usr/bin/env python2.4
  2. class Service:
  3. def echo(self, msg):
  4. return msg
  5. def reverse(self, msg):
  6. return msg[::-1]
  7. def uppercase(self, msg):
  8. return msg.upper()
  9. def lowercase(self, msg):
  10. return msg.lower()
  11. from jsonrpc.cgihandler import handleCGIRequest
  12. handleCGIRequest(Service())