Changes between Version 12 and Version 13 of Development/Plugins


Ignore:
Timestamp:
08/09/2008 08:10:47 AM (16 years ago)
Author:
mvoncken
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Development/Plugins

    v12 v13  
    22= Development/Plugins = 
    33 
    4 We're sorry. not much docs yet. 
    54 
    65Plugins consist of a core part and ui parts for the various user-interfaces. 
    76 
    8 Take a look at the blocklist plugin for an example. 
    9   
     7They are distributed using python eggs http://peak.telecommunity.com/DevCenter/PythonEggs 
     8 
     9== Creating a new plugin ==  
     10Here is is a script to create a new plugin : http://dev.deluge-torrent.org/browser/trunk/deluge/scripts/create_plugin.py?format=raw. 
     11 
     12Go to and empty directory, and run:  
     13{{{ 
     14python create_plugin.py --name MyPlugin2 --basepath . --author-name "Your Name" --author-email "yourname@example.com" 
     15}}} 
     16 
     17This will create a new directory <plugin-name> , contaning a basic plugin template. 
     18And it will link it from ~/.config/deluge/plugins 
     19 
     20Restart deluge and deluged. 
     21 
     22== Distributing a plugin == 
     23Go to the plugin-name directory, and type  
     24 
     25{{{python setup.py python setup.py bdist_egg}}} 
     26 
     27This will build an egg. 
     28 
     29Rename the egg to <plugin-name>.egg and share it, 
    1030 
    1131= Various random facts =