Changeset 4420f2f
- Timestamp:
- 01/19/2010 11:00:48 PM (15 years ago)
- Branches:
- 2.0.x, develop, extjs4-port, master
- Children:
- a82b6e
- Parents:
- f8f9438
- Location:
- deluge/ui/console
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
deluge/ui/console/commands/plugin.py
rf8f9438 r4420f2f 70 70 self.console.write("{!input!} " + p) 71 71 72 client.core.get_available_plugins().addCallback(on_available_plugins)72 return client.core.get_available_plugins().addCallback(on_available_plugins) 73 73 74 74 if options["show"]: … … 78 78 self.console.write("{!input!} " + p) 79 79 80 client.core.get_enabled_plugins().addCallback(on_enabled_plugins)80 return client.core.get_enabled_plugins().addCallback(on_enabled_plugins) 81 81 82 82 if options["enable"]: … … 91 91 client.core.enable_plugin(plugins[arg.lower()]) 92 92 93 client.core.get_available_plugins().addCallback(on_available_plugins)93 return client.core.get_available_plugins().addCallback(on_available_plugins) 94 94 95 95 if options["disable"]: … … 104 104 client.core.disable_plugin(plugins[arg.lower()]) 105 105 106 client.core.get_enabled_plugins().addCallback(on_enabled_plugins)106 return client.core.get_enabled_plugins().addCallback(on_enabled_plugins) -
deluge/ui/console/main.py
rf8f9438 r4420f2f 171 171 # allow multiple commands split by ";" 172 172 for arg in args.split(";"): 173 deferreds.append( self.do_command(arg.strip()))173 deferreds.append(defer.maybeDeferred(self.do_command, arg.strip())) 174 174 175 175 def on_complete(result):
Note:
See TracChangeset
for help on using the changeset viewer.