annotate src/core/default_config.py @ 773:eac23b1aad90

core: dynamics menus refactoring: - menu now use generic callback system, with extra data - asyncMenuCall is removed in favor of launchAction - menu_id (== callback_id) is used to identify menu instead of category/name/type tuple - i18n is managed throught deferred translation, and returned with _i18n suffix e.g.: menu (D_('File'), D_('Open')): (u'File', u'Open') is menu_path, (u'Fichier', u'Ouvrir') is french menu_path_i18n. - type actually can have the following values: - NORMAL: classical menu - JID_CONTEXT: contextual menu, used with any jid - ROSTER_JID_CONTEXT: like JID_CONTEXT, but restricted to jids in roster. - ROSTER_GROUP_CONTEXT: contextual menu, use with groups - security_limit is used, in the same way as for parameters - when using importMenu, callback can be an actual callback, or one already registered with registerCallback
author Goffi <goffi@goffi.org>
date Sun, 29 Dec 2013 17:10:14 +0100
parents 84a6e83157c2
children 1fe00f0c9a91
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
364
312ca6f9d84a core: configuration file
Goffi <goffi@goffi.org>
parents:
diff changeset
1 #!/usr/bin/python
312ca6f9d84a core: configuration file
Goffi <goffi@goffi.org>
parents:
diff changeset
2 # -*- coding: utf-8 -*-
312ca6f9d84a core: configuration file
Goffi <goffi@goffi.org>
parents:
diff changeset
3
609
84a6e83157c2 fixed licences in docstrings (they are now in comments)
Goffi <goffi@goffi.org>
parents: 597
diff changeset
4 # SAT: a jabber client
84a6e83157c2 fixed licences in docstrings (they are now in comments)
Goffi <goffi@goffi.org>
parents: 597
diff changeset
5 # Copyright (C) 2009, 2010, 2011, 2012, 2013 Jérôme Poisson (goffi@goffi.org)
364
312ca6f9d84a core: configuration file
Goffi <goffi@goffi.org>
parents:
diff changeset
6
609
84a6e83157c2 fixed licences in docstrings (they are now in comments)
Goffi <goffi@goffi.org>
parents: 597
diff changeset
7 # This program is free software: you can redistribute it and/or modify
84a6e83157c2 fixed licences in docstrings (they are now in comments)
Goffi <goffi@goffi.org>
parents: 597
diff changeset
8 # it under the terms of the GNU Affero General Public License as published by
84a6e83157c2 fixed licences in docstrings (they are now in comments)
Goffi <goffi@goffi.org>
parents: 597
diff changeset
9 # the Free Software Foundation, either version 3 of the License, or
84a6e83157c2 fixed licences in docstrings (they are now in comments)
Goffi <goffi@goffi.org>
parents: 597
diff changeset
10 # (at your option) any later version.
364
312ca6f9d84a core: configuration file
Goffi <goffi@goffi.org>
parents:
diff changeset
11
609
84a6e83157c2 fixed licences in docstrings (they are now in comments)
Goffi <goffi@goffi.org>
parents: 597
diff changeset
12 # This program is distributed in the hope that it will be useful,
84a6e83157c2 fixed licences in docstrings (they are now in comments)
Goffi <goffi@goffi.org>
parents: 597
diff changeset
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
84a6e83157c2 fixed licences in docstrings (they are now in comments)
Goffi <goffi@goffi.org>
parents: 597
diff changeset
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
84a6e83157c2 fixed licences in docstrings (they are now in comments)
Goffi <goffi@goffi.org>
parents: 597
diff changeset
15 # GNU Affero General Public License for more details.
364
312ca6f9d84a core: configuration file
Goffi <goffi@goffi.org>
parents:
diff changeset
16
609
84a6e83157c2 fixed licences in docstrings (they are now in comments)
Goffi <goffi@goffi.org>
parents: 597
diff changeset
17 # You should have received a copy of the GNU Affero General Public License
84a6e83157c2 fixed licences in docstrings (they are now in comments)
Goffi <goffi@goffi.org>
parents: 597
diff changeset
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
364
312ca6f9d84a core: configuration file
Goffi <goffi@goffi.org>
parents:
diff changeset
19
312ca6f9d84a core: configuration file
Goffi <goffi@goffi.org>
parents:
diff changeset
20 CONST = {
589
d1b4805124a1 Fix pep8 support in src/core.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 581
diff changeset
21 'client_name': u'SàT (Salut à toi)',
597
cc09cc8c78fc core: version update to development version
Goffi <goffi@goffi.org>
parents: 589
diff changeset
22 'client_version': u'0.3.0D', # Please add 'D' at the end for dev versions
589
d1b4805124a1 Fix pep8 support in src/core.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 581
diff changeset
23 'local_dir': '~/.sat'
364
312ca6f9d84a core: configuration file
Goffi <goffi@goffi.org>
parents:
diff changeset
24 }
312ca6f9d84a core: configuration file
Goffi <goffi@goffi.org>
parents:
diff changeset
25
312ca6f9d84a core: configuration file
Goffi <goffi@goffi.org>
parents:
diff changeset
26 ### Defaut configuration values ###
312ca6f9d84a core: configuration file
Goffi <goffi@goffi.org>
parents:
diff changeset
27
312ca6f9d84a core: configuration file
Goffi <goffi@goffi.org>
parents:
diff changeset
28 default_config = {
312ca6f9d84a core: configuration file
Goffi <goffi@goffi.org>
parents:
diff changeset
29 'local_dir': '~/.sat',
312ca6f9d84a core: configuration file
Goffi <goffi@goffi.org>
parents:
diff changeset
30 'media_dir': '/usr/share/sat/media',
312ca6f9d84a core: configuration file
Goffi <goffi@goffi.org>
parents:
diff changeset
31 }