Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Weblate
gajim
Commits
d8075a23
Commit
d8075a23
authored
16 years ago
by
Mateusz Biliński
Browse files
Options
Downloads
Patches
Plain Diff
Small sync commit.
parent
b647885d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/plugins/gui.py
+2
-2
2 additions, 2 deletions
src/plugins/gui.py
src/plugins/helpers.py
+1
-1
1 addition, 1 deletion
src/plugins/helpers.py
src/plugins/plugin.py
+14
-0
14 additions, 0 deletions
src/plugins/plugin.py
with
17 additions
and
3 deletions
src/plugins/gui.py
+
2
−
2
View file @
d8075a23
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/plugins/helpers.py
+
1
−
1
View file @
d8075a23
...
...
@@ -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
'''
...
...
This diff is collapsed.
Click to expand it.
src/plugins/plugin.py
+
14
−
0
View file @
d8075a23
...
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment