Small sync commit.
This commit is contained in:
parent
b647885d86
commit
d8075a23e6
3 changed files with 17 additions and 3 deletions
|
@ -19,7 +19,7 @@
|
||||||
GUI classes related to plug-in management.
|
GUI classes related to plug-in management.
|
||||||
|
|
||||||
:author: Mateusz Biliński <mateusz@bilinski.it>
|
:author: Mateusz Biliński <mateusz@bilinski.it>
|
||||||
:since: 06/06/2008
|
:since: 6th June 2008
|
||||||
:copyright: Copyright (2008) Mateusz Biliński <mateusz@bilinski.it>
|
:copyright: Copyright (2008) Mateusz Biliński <mateusz@bilinski.it>
|
||||||
:license: GPL
|
:license: GPL
|
||||||
'''
|
'''
|
||||||
|
@ -183,7 +183,7 @@ class PluginsWindow(object):
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# No plugin selected. this should never be reached. As configure
|
# No plugin selected. this should never be reached. As configure
|
||||||
# plugin button should only my clickable when plugin is selected.
|
# plugin button should only be clickable when plugin is selected.
|
||||||
# XXX: maybe throw exception here?
|
# XXX: maybe throw exception here?
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
Helper code related to plug-ins management system.
|
Helper code related to plug-ins management system.
|
||||||
|
|
||||||
:author: Mateusz Biliński <mateusz@bilinski.it>
|
:author: Mateusz Biliński <mateusz@bilinski.it>
|
||||||
:since: 05/30/2008
|
:since: 30th May 2008
|
||||||
:copyright: Copyright (2008) Mateusz Biliński <mateusz@bilinski.it>
|
:copyright: Copyright (2008) Mateusz Biliński <mateusz@bilinski.it>
|
||||||
:license: GPL
|
:license: GPL
|
||||||
'''
|
'''
|
||||||
|
|
|
@ -97,6 +97,20 @@ class GajimPlugin(object):
|
||||||
'''
|
'''
|
||||||
Extension points that plugin wants to connect with.
|
Extension points that plugin wants to connect with.
|
||||||
'''
|
'''
|
||||||
|
config_default_values = {}
|
||||||
|
'''
|
||||||
|
Default values for keys that should be stored in plug-in config.
|
||||||
|
|
||||||
|
This dict is used when when someone calls for config option but it has not
|
||||||
|
been set yet.
|
||||||
|
|
||||||
|
Values are tuples: (default_value, option_description). The first one can
|
||||||
|
be anything (this is the advantage of using shelve/pickle instead of
|
||||||
|
custom-made config I/O handling); the second one should be unicode (gettext
|
||||||
|
can be used if need and/or translation is planned).
|
||||||
|
|
||||||
|
:type: {} of 2-element tuples
|
||||||
|
'''
|
||||||
|
|
||||||
@log_calls('GajimPlugin')
|
@log_calls('GajimPlugin')
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
Loading…
Add table
Reference in a new issue