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

Changeset 953

Show
Ignore:
Timestamp:
02/01/06 11:26:22
Author:
fumanchu
Message:

Fix for server.start lowercase names (serverClass = None is different than serverClass = missing).

Files:

Legend:

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

    r943 r953  
    4343        self.onStopThreadList = [] 
    4444     
    45     def start(self, init_only = False, server_class = _missing, 
    46                 initOnly = None, serverClass = None): 
     45    def start(self, init_only = False, server_class = _missing, **kwargs): 
    4746        """Main function. MUST be called from the main thread. 
    4847         
     
    5251         
    5352        # Read old variable names for backward compatibility 
    54         if initOnly is not None: 
    55             init_only = initOnly 
    56         if serverClass is not None: 
    57             server_class = serverClass 
    58  
     53        if 'initOnly' in kwargs: 
     54            init_only = kwargs['initOnly'] 
     55        if 'serverClass' in kwargs: 
     56            server_class = kwargs['serverClass'] 
     57        cherrypy.log("%s %s" % (init_only, server_class)) 
     58         
    5959        self.state = STARTING 
    6060        self.interrupt = None 

Hosted by WebFaction

Log in as guest/cpguest to create tickets