Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1820

Show
Ignore:
Timestamp:
11/07/07 18:14:08
Author:
fumanchu
Message:

Changed bus event messages to match the state enum values.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/restsrv/wspbus.py

    r1816 r1820  
    142142                if exc and e.code == 0: 
    143143                    e.code = 1 
    144                 raise  
     144                raise 
    145145            except: 
    146146                self.log("Error in %r listener %r" % (channel, listener), 
     
    154154        """Start all services.""" 
    155155        self.state = states.STARTING 
    156         self.log('Bus starting') 
     156        self.log('Bus STARTING') 
    157157        try: 
    158158            self.publish('start') 
     159            self.state = states.STARTED 
     160            self.log('Bus STARTED') 
    159161        except (KeyboardInterrupt, SystemExit): 
    160162            raise 
     
    169171            self.log("Exception that caused shutdown: %s" % start_trace) 
    170172            raise e_info[0], e_info[1], e_info[2] 
    171  
    172         self.state = states.STARTED 
    173173     
    174174    def exit(self, status=0): 
     
    240240        """Stop all services.""" 
    241241        self.state = states.STOPPING 
    242         self.log('Bus stopping') 
     242        self.log('Bus STOPPING') 
    243243        self.publish('stop') 
    244244        self.state = states.STOPPED 
     245        self.log('Bus STOPPED') 
    245246     
    246247    def start_with_callback(self, func, args=None, kwargs=None): 

Hosted by WebFaction

Log in as guest/cpguest to create tickets