Skip to content
Snippets Groups Projects
Commit d8075a23 authored by Mateusz Biliński's avatar Mateusz Biliński
Browse files

Small sync commit.

parent b647885d
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@
GUI classes related to plug-in management.
:author: Mateusz Biliński <mateusz@bilinski.it>
:since: 06/06/2008
:since: 6th June 2008
:copyright: Copyright (2008) Mateusz Biliński <mateusz@bilinski.it>
:license: GPL
'''
......@@ -183,7 +183,7 @@ class PluginsWindow(object):
else:
# 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?
pass
......
......@@ -19,7 +19,7 @@
Helper code related to plug-ins management system.
:author: Mateusz Biliński <mateusz@bilinski.it>
:since: 05/30/2008
:since: 30th May 2008
:copyright: Copyright (2008) Mateusz Biliński <mateusz@bilinski.it>
:license: GPL
'''
......
......@@ -97,6 +97,20 @@ class GajimPlugin(object):
'''
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')
def __init__(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment