Package common :: Module config :: Class Config
[hide private]
[frames] | no frames]

Class Config

source code

Instance Methods [hide private]
 
foreach(self, cb, data=None) source code
 
get_children(self, node=None)
Tree-like interface
source code
 
is_valid_int(self, val) source code
 
is_valid_bool(self, val) source code
 
is_valid_string(self, val) source code
 
is_valid(self, type_, val) source code
 
set(self, optname, value) source code
 
get(self, optname=None) source code
 
get_desc(self, optname) source code
 
get_restart(self, optname) source code
 
add_per(self, typename, name) source code
 
del_per(self, typename, name, subname=None) source code
 
set_per(self, optname, key, subname, value) source code
 
get_per(self, optname, key=None, subname=None) source code
 
get_desc_per(self, optname, key=None, subname=None) source code
 
get_restart_per(self, optname, key=None, subname=None) source code
 
should_log(self, account, jid)
Should conversations between a local account and a remote jid be logged?
source code
 
__init__(self) source code
Class Variables [hide private]
  DEFAULT_ICONSET = 'dcraven'
  DEFAULT_MOOD_ICONSET = 'default'
  DEFAULT_ACTIVITY_ICONSET = 'default'
  DEFAULT_OPENWITH = 'gnome-open'
  DEFAULT_BROWSER = 'firefox'
  DEFAULT_MAILAPP = 'mozilla-thunderbird -compose'
  DEFAULT_FILE_MANAGER = 'xffm'
  __options = {'activity_iconset': [['string', 0], 'default', ''...
  __options_per_key = {'accounts': ({'active': [['boolean', 0], ...
  statusmsg_default = {u'Back soon': [u'Back in some minutes.', ...
  defaultstatusmsg_default = {'away': [False, u'Be right back.']...
  soundevents_default = {'contact_connected': [True, 'connected....
  themes_default = {u'default': ['', '', '', 'B', '', '', '', 'I...
Method Details [hide private]

foreach(self, cb, data=None)

source code 

get_children(self, node=None)

source code 
Tree-like interface

is_valid_int(self, val)

source code 

is_valid_bool(self, val)

source code 

is_valid_string(self, val)

source code 

is_valid(self, type_, val)

source code 

set(self, optname, value)

source code 

get(self, optname=None)

source code 

get_desc(self, optname)

source code 

get_restart(self, optname)

source code 

add_per(self, typename, name)

source code 

del_per(self, typename, name, subname=None)

source code 

set_per(self, optname, key, subname, value)

source code 

get_per(self, optname, key=None, subname=None)

source code 

get_desc_per(self, optname, key=None, subname=None)

source code 

get_restart_per(self, optname, key=None, subname=None)

source code 

should_log(self, account, jid)

source code 
Should conversations between a local account and a remote jid be logged?

__init__(self)
(Constructor)

source code 

Class Variable Details [hide private]

DEFAULT_ICONSET

Value:
'dcraven'

DEFAULT_MOOD_ICONSET

Value:
'default'

DEFAULT_ACTIVITY_ICONSET

Value:
'default'

DEFAULT_OPENWITH

Value:
'gnome-open'

DEFAULT_BROWSER

Value:
'firefox'

DEFAULT_MAILAPP

Value:
'mozilla-thunderbird -compose'

DEFAULT_FILE_MANAGER

Value:
'xffm'

__options

Value:
{'activity_iconset': [['string', 0], 'default', '', True],
 'after_nickname': [['string', 0],
                    ':',
                    u'Characters that are printed after the nickname i\
n conversations'],
 'always_english_wikipedia': [['boolean', 0], False],
 'always_english_wiktionary': [['boolean', 0], True],
 'ascii_formatting': [['boolean', 0], True, u'Treat * / _ pairs as pos\
...

__options_per_key

Value:
{'accounts': ({'active': [['boolean', 0],
                          True,
                          u'If False, this account will be disabled an\
d will not appear in roster window.',
                          True],
               'adjust_priority_with_status': [['boolean', 0],
                                               True,
                                               u'Priority will change \
...

statusmsg_default

Value:
{u'Back soon': [u'Back in some minutes.', '', '', '', '', ''],
 u'Eating': [u'I'm eating, so leave me a message.',
             'eating',
             'other',
             '',
             '',
             ''],
 u'Movie': [u'I'm watching a movie.', 'relaxing', 'watching_a_movie', \
...

defaultstatusmsg_default

Value:
{'away': [False, u'Be right back.'],
 'chat': [False, u'I'm free for chat.'],
 'dnd': [False, u'Do not disturb.'],
 'invisible': [False, u'Bye!'],
 'offline': [False, u'Bye!'],
 'online': [False, u'I'm available.'],
 'xa': [False, u'I'm not available.']}

soundevents_default

Value:
{'contact_connected': [True, 'connected.wav'],
 'contact_disconnected': [True, 'disconnected.wav'],
 'first_message_received': [True, 'message1.wav'],
 'gmail_received': [False, 'message1.wav'],
 'message_sent': [True, 'sent.wav'],
 'muc_message_highlight': [True,
                           'gc_message1.wav',
                           u'Sound to play when a group chat message c\
...

themes_default

Value:
{u'default': ['',
              '',
              '',
              'B',
              '',
              '',
              '',
              'I',
...