Changes between Version 12 and Version 13 of Development/1.2/Plugin


Ignore:
Timestamp:
07/08/2011 03:36:39 PM (13 years ago)
Author:
Cas
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Development/1.2/Plugin

    v12 v13  
    113113 
    114114 * log - This is the Deluge logging object.  It can be handy for logging debug information or anything else you want printed to the log.  It has a few methods: log.debug("Message"), log.error("Message"), log.info("Message"), etc..  You can see the rest defined in the python logging module documentation. 
    115  * CorePluginBase - This is the base class we use for our Core plugin. 
     115 * !CorePluginBase - This is the base class we use for our Core plugin. 
    116116 * component - This provides access to the component registry where you can reference any of the Deluge components for use in your plugin. 
    117  * configmanager - This allows access to the Deluge ConfigManager which is how you will access config files. 
     117 * configmanager - This allows access to the Deluge !ConfigManager which is how you will access config files. 
    118118 * export - This is a decorator function we use to ''export'' RPC methods. 
    119119 
     
    139139}}} 
    140140 
    141 We see here that we're using Deluge's ConfigManager to handle loading our config with some default preferences.  All you really need to know is that this `config` object will act much like a dictionary object, but has some special methods like `save()` for writing the config to disk.  You don't need to necessarily call `save()` yourself, as the config object will handle this on it's own when the config values change. 
     141We see here that we're using Deluge's !ConfigManager to handle loading our config with some default preferences.  All you really need to know is that this `config` object will act much like a dictionary object, but has some special methods like `save()` for writing the config to disk.  You don't need to necessarily call `save()` yourself, as the config object will handle this on it's own when the config values change. 
    142142 
    143143You can read here: http://deluge-torrent.org/docs/current/modules/config.html for more information on the Config class.