Changeset 16d695


Ignore:
Timestamp:
04/27/2009 10:01:34 PM (16 years ago)
Author:
Damien Churchill <damoc@gmail.com>
Branches:
2.0.x, develop, extjs4-port, master
Children:
f2364b
Parents:
137d0f
Message:

enable and disable plugins at start/stop
convert the directories to a list in the lookupresource

File:
1 edited

Legend:

Unmodified
Added
Removed
  • deluge/ui/web/server.py

    r137d0f r16d695  
    6868CONFIG_DEFAULTS = {
    6969    "port": 8112,
     70    "enabled_plugins": [],
    7071    "theme": "slate",
    7172    "pwd_salt": "16f65d5c79b7e93278a28b60fed2431e",
     
    206207        resource.Resource.__init__(self)
    207208        component.Component.__init__(self, name)
    208         self.__directories = directories
     209        self.__directories = list(directories)
    209210
    210211    @property
     
    370371        log.info("serving on %s:%s view at http://127.0.0.1:%s", "0.0.0.0",
    371372            self.port, self.port)
     373        self.plugins.enable_plugins()
    372374        reactor.run()
    373375
    374376    def shutdown(self, *args):
    375377        log.info("Shutting down webserver")
     378        self.plugins.disable_plugins()
    376379        log.debug("Saving configuration file")
    377380        self.config.save()
Note: See TracChangeset for help on using the changeset viewer.