PageRenderTime 122ms CodeModel.GetById 60ms app.highlight 1ms RepoModel.GetById 59ms 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
 1#!/usr/bin/env python2.4
 2
 3class Service:
 4    def echo(self, msg):
 5        return msg
 6
 7    def reverse(self, msg):
 8        return msg[::-1]
 9
10    def uppercase(self, msg):
11        return msg.upper()
12
13    def lowercase(self, msg):
14        return msg.lower()
15
16
17from jsonrpc.cgihandler import handleCGIRequest
18
19handleCGIRequest(Service())
20