convert t...
Content-type: text/plain
Author: damoxc
Revision: 5200
Log:
enable and disable plugins at start/stop
convert the directories to a list in the lookupresource
Diff:
Modified: trunk/deluge/ui/web/server.py
===================================================================
--- trunk/deluge/ui/web/server.py 2009-04-27 21:33:50 UTC (rev 5199)
+++ trunk/deluge/ui/web/server.py 2009-04-27 22:01:34 UTC (rev 5200)
@@ -67,6 +67,7 @@
CONFIG_DEFAULTS = {
"port": 8112,
+ "enabled_plugins": [],
"theme": "slate",
"pwd_salt": "16f65d5c79b7e93278a28b60fed2431e",
"pwd_md5": "2c9baa929ca38fb5c9eb5b054474d1ce",
@@ -205,7 +206,7 @@
def __init__(self, name, *directories):
resource.Resource.__init__(self)
component.Component.__init__(self, name)
- self.__directories = directories
+ self.__directories = list(directories)
@property
def directories(self):
@@ -369,10 +370,12 @@
reactor.listenTCP(self.port, self.site)
log.info("serving on %s:%s view at http://127.0.0.1:%s", "0.0.0.0",
self.port, self.port)
+ self.plugins.enable_plugins()
reactor.run()
def shutdown(self, *args):
log.info("Shutting down webserver")
+ self.plugins.disable_plugins()
log.debug("Saving configuration file")
self.config.save()
try:
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---