bendikro
178c417fb0
[Core] [Tests] Changes to component.shutdown and unit tests
...
* component registry shutdown() now cleans up the component list
this ensures that no old components are left when running unit
tests.
* Added class BaseTestCase that all tests that create components
should inherit from. It verifies the compoent list before and
after the tests are run.
2014-12-01 10:52:08 +00:00
Calum Lind
5167e93d12
Flake8 core and common files
...
* Added N802 to flake8 ignore as certain inherited funcs cannot be changed
to lowercase and this unresolved warning hides other errors/warnings.
* Include new header
2014-09-03 23:48:34 +01:00
Calum Lind
b5dcfc6f9e
Sort/prettify imports with isort
2014-09-03 18:27:32 +01:00
Chase Sterling
58cb9e1c22
Make sure dependent components are stopped before their dependencies.
...
Make sure deferreds are not lost in new resume saving code.
2012-12-07 22:22:24 -05:00
Calum Lind
9053280e14
Alternative fix for re-enabling plugin issue
2012-03-02 13:19:23 +00:00
John Garland
cf891125e6
Only deregister component if registry still exists
2011-07-05 17:58:18 +10:00
Andrew Resch
5bc63fa910
Change component.deregister to take the object as the parameter, not the name
2011-06-06 14:19:51 -07:00
Pedro Algarvio
59f9d4e5cc
Revert "Work around plugins being garbage collected once enabled twice."
...
This reverts commit 2f71ef4264de9b814e111236efc05b2de63e1db1.
2011-06-06 18:16:05 +01:00
Pedro Algarvio
2f71ef4264
Work around plugins being garbage collected once enabled twice.
...
When a plugin is enabled, disabled and then enabled again, on that second enable, that instance is being garbage collected causing the loading of the plugin to fail. Work around that until we can narrow down why is this is happening on the second enable.
2011-06-05 22:28:37 +01:00
Andrew Resch
2f785216f6
Show errors when trying failing to properly stop a component
2011-06-02 11:53:34 -07:00
Pedro Algarvio
3b00a7de59
Swhiched the old style logging, ie, a single logger for all logging output to several loggers. This brings the ability to tweak the logging levels for each of the loggers, ie, we can have the "deluge" logger be at the ERROR level while having "deluge.core" at the DEBUG level, meaning we will only see log message for all of the deluge loggers above the ERROR level while still having all messages above the DEBUG level for the "deluge.core" logger and it's children. This kind of tweak can be achieved by adding a file named "logging.conf" to deluge's config dir and this is explained on the deluge.log.tweak_logging_levels function.
...
Passing `-r` to the cli's while also passing `-l` will make the logfile rotate when reaching 5Mb in size. Three backups will be kept at all times.
All deluge's code is now using this new style logging along with the git hosted plugins. For other plugins not hosted by deluge, which still imports `LOG` as the logger, a deprecation warning will be shown explaining the required changes needed to use the new style logging. New plugins created by the `create_plugin` script will use the new logging facilities.
2010-12-06 11:20:22 +00:00
Andrew Resch
afa283cd2d
Add an errback for when calling a component's start() fails and revert it back to a Stopped
...
state in this case
2010-04-08 17:16:28 -07:00
Andrew Resch
7be5b4c8bc
Add 2 new states to Component: Starting and Stopping
...
Fix issue where a Component could have it's start and stop methods called more than once while waiting for their deferreds to fire
2010-03-27 20:05:20 -07:00
Andrew Resch
73db03a33b
Fix up some docstrings
2010-03-25 14:43:15 -07:00
Andrew Resch
e7e480cf3e
Fix up some docstrings
2010-03-25 12:01:40 -07:00
Andrew Resch
e7c7b8f4db
Fix typo
2010-03-24 22:55:45 -07:00
Andrew Resch
78f9f22a40
Raise a KeyError exception if trying to stop a component that hasn't
...
isn't registered
2010-03-24 22:52:03 -07:00
Andrew Resch
52ea19249c
Fix issue where plugins would try to be stopped after they have been
...
deregistered
2010-03-22 19:59:11 -07:00
Andrew Resch
b0714f625f
Rewrite component module to handle deferreds properly
...
Add test_component
Fix test_core to work with new component module
2010-03-20 19:15:33 -07:00
Pedro Algarvio
8a6ec7232d
Merge SVN and HG heads.
2009-11-22 02:34:51 +00:00
Pedro Algarvio
0723a77214
First notifications plugin commit.
...
Working when not in classic mode. In classic mode, needs some more coding.
2009-11-22 02:34:23 +00:00
Andrew Resch
9b8282010c
Fix disabling/enabling plugins after switching daemons
2009-11-08 04:04:40 +00:00
Andrew Resch
22a982430c
Remove _update method
2009-07-25 00:41:20 +00:00
Andrew Resch
d67477f6e2
Add OpenSSL exception to all GPL headers
2009-05-18 21:51:49 +00:00
Andrew Resch
3f03cb967a
Get Label plugin working in the GtkUI
2009-02-27 17:12:53 +00:00
Andrew Resch
e0735cf5ca
Only attempt stopping PluginManagers looping call if it's running.
2009-02-03 06:39:33 +00:00
Andrew Resch
d6fd69eba8
Fix adding torrents
2009-01-29 01:42:48 +00:00
Andrew Resch
e9f8c7b0e8
Get Classic mode working somewhat. There are still some issues to
...
resolve with it.
2009-01-28 17:59:27 +00:00
Andrew Resch
42588656fd
Implement new DelugeRPC method to replace XMLRPC.
...
This commit breaks _a lot_ of things including the web and console UIs, please do not expect
anything to work.
2009-01-27 08:03:39 +00:00
Andrew Resch
04d14df8c7
Re-org Core and start using RPCServer
2008-12-20 04:27:59 +00:00
Andrew Resch
c6ddaeaac7
Remove OpenSSL exception from license headers
2008-11-23 04:58:01 +00:00
Andrew Resch
a0bf6d8fe1
Remove trailing whitspace from *.py
2008-11-17 00:57:32 +00:00
Marcos Pinto
faeddbdf46
more gpl3 switches
2008-08-09 00:04:27 +00:00
Andrew Resch
58e4e1b2f4
Update some copyright years.
2008-03-10 06:12:51 +00:00
Andrew Resch
f1808a0cc3
Add pausing and resuming of components. This stops the update() timer
...
for the component and restarts it upon resume.
2008-02-27 07:43:47 +00:00
Andrew Resch
4c2ec1b8fb
Change torrent saving/loading to use torrent options and update the
...
state format to support new options.
Some minor modifications to CoreProxy in client -- only run the
do_multicall timer when 'connected' to a core.
2008-02-12 21:29:39 +00:00
Andrew Resch
1653a72c7a
Do not update UI when minimized or hidden.
2008-01-30 12:56:50 +00:00
Andrew Resch
f9d25287ea
Change Component to use individual timers for the components. This
...
allows for different update intervals for the components.
2008-01-21 01:57:25 +00:00
Andrew Resch
559fcdf51c
Move component.py up one level.
2007-12-10 10:26:44 +00:00