• Vincent Pelletier's avatar
    Move connectToPrimaryMasterNode from Dispatcher class to App class since it... · 185fa3b3
    Vincent Pelletier authored
    Move connectToPrimaryMasterNode from Dispatcher class to App class since it does not functionally belong to dispatcher.
    This simplifies connectToPrimaryMasterNode code and startup code a bit:
     - connectToPrimaryMasterNode does not need to manually poll to get a response (we use normal code for this)
       This removes a difference between initial master connection and a reconnection.
     - make App instance get a workable dispatcher from the beginning
     - make App handle initial master connection instead of Storage
     - rename "connector" parameter of connectToPrimaryMasterNode into "connector_handler", since it's what it really is
    Update caller (ClientEventHandler class).
    
    
    git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@320 71dcc9de-d417-0410-9af5-da40c76e7ee4
    185fa3b3
dispatcher.py 2.29 KB