~cmiller/ubuntu/quantal/deluge/fix-parameter-move-storage

« back to all changes in this revision

Viewing changes to deluge/plugins/extractor/extractor/__init__.py

  • Committer: Bazaar Package Importer
  • Author(s): Cristian Greco
  • Date: 2009-11-13 02:39:45 UTC
  • mfrom: (4.1.7 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091113023945-te1bybo2912ejzuc
Tags: 1.2.0~rc3-4
* debian/control: bump build-dep on python-setuptools to (>= 0.6c9).
* debian/patches:
  - 25_r5921_fastresume_files.patch
    new, should fix problems with fresh configs;
  - 30_r5931_ipc_lockfile.patch:
    new, should fix an issue where Deluge will fail to start if there is a
    stale ipc lockfile. (Closes: #555849)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# __init__.py
 
3
#
 
4
# Copyright (C) 2009 Andrew Resch <andrewresch@gmail.com>
 
5
#
 
6
# Basic plugin template created by:
 
7
# Copyright (C) 2008 Martijn Voncken <mvoncken@gmail.com>
 
8
# Copyright (C) 2007-2009 Andrew Resch <andrewresch@gmail.com>
 
9
#
 
10
# Deluge is free software.
 
11
#
 
12
# You may redistribute it and/or modify it under the terms of the
 
13
# GNU General Public License, as published by the Free Software
 
14
# Foundation; either version 3 of the License, or (at your option)
 
15
# any later version.
 
16
#
 
17
# deluge is distributed in the hope that it will be useful,
 
18
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
19
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
20
# See the GNU General Public License for more details.
 
21
#
 
22
# You should have received a copy of the GNU General Public License
 
23
# along with deluge.    If not, write to:
 
24
#       The Free Software Foundation, Inc.,
 
25
#       51 Franklin Street, Fifth Floor
 
26
#       Boston, MA  02110-1301, USA.
 
27
#
 
28
#    In addition, as a special exception, the copyright holders give
 
29
#    permission to link the code of portions of this program with the OpenSSL
 
30
#    library.
 
31
#    You must obey the GNU General Public License in all respects for all of
 
32
#    the code used other than OpenSSL. If you modify file(s) with this
 
33
#    exception, you may extend this exception to your version of the file(s),
 
34
#    but you are not obligated to do so. If you do not wish to do so, delete
 
35
#    this exception statement from your version. If you delete this exception
 
36
#    statement from all source files in the program, then also delete it here.
 
37
#
 
38
#
 
39
 
 
40
from deluge.plugins.init import PluginInitBase
 
41
 
 
42
class CorePlugin(PluginInitBase):
 
43
    def __init__(self, plugin_name):
 
44
        from core import Core as _plugin_cls
 
45
        self._plugin_cls = _plugin_cls
 
46
        super(CorePlugin, self).__init__(plugin_name)
 
47
 
 
48
class GtkUIPlugin(PluginInitBase):
 
49
    def __init__(self, plugin_name):
 
50
        from gtkui import GtkUI as _plugin_cls
 
51
        self._plugin_cls = _plugin_cls
 
52
        super(GtkUIPlugin, self).__init__(plugin_name)
 
53
 
 
54
class WebUIPlugin(PluginInitBase):
 
55
    def __init__(self, plugin_name):
 
56
        from webui import WebUI as _plugin_cls
 
57
        self._plugin_cls = _plugin_cls
 
58
        super(WebUIPlugin, self).__init__(plugin_name)