ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/experimental/xmlrpctest/xmlrpcserver.py
(Generate patch)

Comparing experimental/xmlrpctest/xmlrpcserver.py (file contents):
Revision 1.1 by ajm, Sun Nov 9 21:02:45 2003 UTC vs.
Revision 1.2 by ajm, Sun Nov 9 22:20:21 2003 UTC

# Line 1 | Line 1
1   #!/usr/bin/python
2   #
3 < # Experiments with Pythons XML-RPM implementation
3 > # Experiments with Pythons XML-RPC implementation
4   #  - the server
5   #
6   # $Id$
# Line 11 | Line 11 | class ServerImpl(SimpleXMLRPCServer):
11  
12      def serve_forever(self):
13          print '[server] starting up'
14 <        self.quit = 0
15 <        while not self.quit:
14 >        self.run = True
15 >        while self.run:
16              self.handle_request()
17  
18          print '[server] shutting down'
# Line 29 | Line 29 | class ServerFunctions:
29  
30      def die(self):
31          """die() => kills the server"""
32 <        self.server.quit = 1
32 >        self.server.run = False
33          return 1
34      
35      def remoteprint(self, text):

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines