Changeset 3
- Timestamp:
- 02/28/06 19:42:23 (3 years ago)
- Files:
-
- trunk/jsonrpc/__init__.py (modified) (1 diff)
- trunk/jsonrpc/apacheServiceHandler.py (modified) (4 diffs)
- trunk/jsonrpc/cgihandler.py (modified) (3 diffs)
- trunk/jsonrpc/errors.py (modified) (1 diff)
- trunk/jsonrpc/proxy.py (modified) (2 diffs)
- trunk/jsonrpc/socketserver.py (modified) (1 diff)
- trunk/setup.py (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/jsonrpc/__init__.py
r1 r3 2 2 Copyright (c) 2006 Jan-Klaas Kollhof 3 3 4 This file is part of pyjsonrpc.5 6 pyjsonrpc is free software; you can redistribute it and/or modify4 This file is part of jsonrpc. 5 6 jsonrpc is free software; you can redistribute it and/or modify 7 7 it under the terms of the GNU Lesser General Public License as published by 8 8 the Free Software Foundation; either version 2.1 of the License, or trunk/jsonrpc/apacheServiceHandler.py
r2 r3 2 2 Copyright (c) 2006 Jan-Klaas Kollhof 3 3 4 This file is part of pyjsonrpc.4 This file is part of jsonrpc. 5 5 6 pyjsonrpc is free software; you can redistribute it and/or modify6 jsonrpc is free software; you can redistribute it and/or modify 7 7 it under the terms of the GNU Lesser General Public License as published by 8 8 the Free Software Foundation; either version 2.1 of the License, or … … 24 24 class ModPyHandler(SimpleServiceHandler): 25 25 def send(self, data): 26 self.req.write(data) ;26 self.req.write(data) 27 27 self.req.flush() 28 28 29 def handle(self, req):29 def handle(self, req): 30 30 self.req = req 31 31 self.messageDelimiter = "\n" 32 32 req.content_type = "text/plain" 33 33 self.handlePartialData(req.read() + "\n") 34 35 34 36 35 from mod_python import apache … … 48 47 #os.chdir(modulePath) 49 48 50 (moduleName, ext) =os.path.splitext(fileName)49 (moduleName, ext) = os.path.splitext(fileName) 51 50 52 module = apache.import_module(moduleName, log=1)51 module = apache.import_module(moduleName, log=1) 53 52 54 53 if hasattr(module, "getService"): … … 64 63 65 64 return apache.OK 65 trunk/jsonrpc/cgihandler.py
r1 r3 2 2 Copyright (c) 2006 Jan-Klaas Kollhof 3 3 4 This file is part of pyjsonrpc.4 This file is part of jsonrpc. 5 5 6 pyjsonrpc is free software; you can redistribute it and/or modify6 jsonrpc is free software; you can redistribute it and/or modify 7 7 it under the terms of the GNU Lesser General Public License as published by 8 8 the Free Software Foundation; either version 2.1 of the License, or … … 30 30 31 31 def send(self, data): 32 self.sendData += data ;32 self.sendData += data 33 33 34 34 def handle(self): … … 59 59 60 60 61 62 61 def handleCGIRequest(service): 63 62 CGIHandler(service).handle() 64 .trunk/jsonrpc/errors.py
r1 r3 2 2 Copyright (c) 2006 Jan-Klaas Kollhof 3 3 4 This file is part of pyjsonrpc.4 This file is part of jsonrpc. 5 5 6 pyjsonrpc is free software; you can redistribute it and/or modify6 jsonrpc is free software; you can redistribute it and/or modify 7 7 it under the terms of the GNU Lesser General Public License as published by 8 8 the Free Software Foundation; either version 2.1 of the License, or trunk/jsonrpc/proxy.py
r1 r3 2 2 Copyright (c) 2006 Jan-Klaas Kollhof 3 3 4 This file is part of pyjsonrpc.4 This file is part of jsonrpc. 5 5 6 pyjsonrpc is free software; you can redistribute it and/or modify6 jsonrpc is free software; you can redistribute it and/or modify 7 7 it under the terms of the GNU Lesser General Public License as published by 8 8 the Free Software Foundation; either version 2.1 of the License, or … … 57 57 from threading import Thread 58 58 59 (host, port)= m.groups() ;59 (host, port)= m.groups() 60 60 port = int(port) 61 61 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) trunk/jsonrpc/socketserver.py
r1 r3 2 2 Copyright (c) 2006 Jan-Klaas Kollhof 3 3 4 This file is part of pyjsonrpc.4 This file is part of jsonrpc. 5 5 6 pyjsonrpc is free software; you can redistribute it and/or modify6 jsonrpc is free software; you can redistribute it and/or modify 7 7 it under the terms of the GNU Lesser General Public License as published by 8 8 the Free Software Foundation; either version 2.1 of the License, or