Changeset 3

Show
Ignore:
Timestamp:
02/28/06 19:42:23 (3 years ago)
Author:
Jan-Klaas Kollhof
Message:

added setup.py, fixed some syntax

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/jsonrpc/__init__.py

    r1 r3  
    22  Copyright (c) 2006 Jan-Klaas Kollhof 
    33 
    4   This file is part of pyjsonrpc. 
    5  
    6   pyjsonrpc is free software; you can redistribute it and/or modify 
     4  This file is part of jsonrpc. 
     5 
     6  jsonrpc is free software; you can redistribute it and/or modify 
    77  it under the terms of the GNU Lesser General Public License as published by 
    88  the Free Software Foundation; either version 2.1 of the License, or 
  • trunk/jsonrpc/apacheServiceHandler.py

    r2 r3  
    22  Copyright (c) 2006 Jan-Klaas Kollhof 
    33 
    4   This file is part of pyjsonrpc. 
     4  This file is part of jsonrpc. 
    55 
    6   pyjsonrpc is free software; you can redistribute it and/or modify 
     6  jsonrpc is free software; you can redistribute it and/or modify 
    77  it under the terms of the GNU Lesser General Public License as published by 
    88  the Free Software Foundation; either version 2.1 of the License, or 
     
    2424class ModPyHandler(SimpleServiceHandler): 
    2525    def send(self, data): 
    26         self.req.write(data); 
     26        self.req.write(data) 
    2727        self.req.flush() 
    2828         
    29     def handle(self,req): 
     29    def handle(self, req): 
    3030        self.req = req 
    3131        self.messageDelimiter = "\n" 
    3232        req.content_type = "text/plain" 
    3333        self.handlePartialData(req.read() + "\n") 
    34  
    3534 
    3635from mod_python import apache 
     
    4847    #os.chdir(modulePath) 
    4948     
    50     (moduleName, ext)=os.path.splitext(fileName) 
     49    (moduleName, ext) = os.path.splitext(fileName) 
    5150     
    52     module = apache.import_module(moduleName,log=1) 
     51    module = apache.import_module(moduleName, log=1) 
    5352        
    5453    if hasattr(module, "getService"): 
     
    6463     
    6564    return apache.OK 
     65     
  • trunk/jsonrpc/cgihandler.py

    r1 r3  
    22  Copyright (c) 2006 Jan-Klaas Kollhof 
    33 
    4   This file is part of pyjsonrpc. 
     4  This file is part of jsonrpc. 
    55 
    6   pyjsonrpc is free software; you can redistribute it and/or modify 
     6  jsonrpc is free software; you can redistribute it and/or modify 
    77  it under the terms of the GNU Lesser General Public License as published by 
    88  the Free Software Foundation; either version 2.1 of the License, or 
     
    3030         
    3131    def send(self, data): 
    32         self.sendData += data; 
     32        self.sendData += data 
    3333         
    3434    def handle(self): 
     
    5959         
    6060         
    61          
    6261def handleCGIRequest(service): 
    6362    CGIHandler(service).handle() 
    64 . 
  • trunk/jsonrpc/errors.py

    r1 r3  
    22  Copyright (c) 2006 Jan-Klaas Kollhof 
    33 
    4   This file is part of pyjsonrpc. 
     4  This file is part of jsonrpc. 
    55 
    6   pyjsonrpc is free software; you can redistribute it and/or modify 
     6  jsonrpc is free software; you can redistribute it and/or modify 
    77  it under the terms of the GNU Lesser General Public License as published by 
    88  the Free Software Foundation; either version 2.1 of the License, or 
  • trunk/jsonrpc/proxy.py

    r1 r3  
    22  Copyright (c) 2006 Jan-Klaas Kollhof 
    33 
    4   This file is part of pyjsonrpc. 
     4  This file is part of jsonrpc. 
    55 
    6   pyjsonrpc is free software; you can redistribute it and/or modify 
     6  jsonrpc is free software; you can redistribute it and/or modify 
    77  it under the terms of the GNU Lesser General Public License as published by 
    88  the Free Software Foundation; either version 2.1 of the License, or 
     
    5757            from threading import Thread 
    5858             
    59             (host, port)= m.groups(); 
     59            (host, port)= m.groups() 
    6060            port = int(port) 
    6161            s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 
  • trunk/jsonrpc/socketserver.py

    r1 r3  
    22  Copyright (c) 2006 Jan-Klaas Kollhof 
    33 
    4   This file is part of pyjsonrpc. 
     4  This file is part of jsonrpc. 
    55 
    6   pyjsonrpc is free software; you can redistribute it and/or modify 
     6  jsonrpc is free software; you can redistribute it and/or modify 
    77  it under the terms of the GNU Lesser General Public License as published by 
    88  the Free Software Foundation; either version 2.1 of the License, or