core: local_dir moved to config file
- ~/.sat.conf added to potential config file location - removed useless profile param from getConfig
This commit is contained in:
parent
1da78d1301
commit
7f1a741caa
2 changed files with 25 additions and 24 deletions
|
|
@ -171,10 +171,10 @@ class DbusObject(dbus.service.Object):
|
|||
return self.cb["disconnect"](unicode(profile_key))
|
||||
|
||||
@dbus.service.method(const_INT_PREFIX+const_COMM_SUFFIX,
|
||||
in_signature='sss', out_signature='s',
|
||||
in_signature='ss', out_signature='s',
|
||||
async_callbacks=None)
|
||||
def getConfig(self, section, name, profile_key='@DEFAULT@'):
|
||||
return self.cb["getConfig"](unicode(section), unicode(name), unicode(profile_key))
|
||||
def getConfig(self, section, name):
|
||||
return self.cb["getConfig"](unicode(section), unicode(name))
|
||||
|
||||
@dbus.service.method(const_INT_PREFIX+const_COMM_SUFFIX,
|
||||
in_signature='s', out_signature='a(sa{ss}as)',
|
||||
|
|
|
|||
|
|
@ -323,13 +323,11 @@ doc_param_2=%(doc_profile_key)s
|
|||
[getConfig]
|
||||
type=method
|
||||
category=communication
|
||||
sig_in=sss
|
||||
sig_in=ss
|
||||
sig_out=s
|
||||
param_2_default='@DEFAULT@'
|
||||
doc=get main configuration option
|
||||
doc_param_0=section: section of the configuration file (empty string for DEFAULT)
|
||||
doc_param_1=name: name of the option
|
||||
doc_param_2=%(doc_profile_key)s
|
||||
|
||||
[setParam]
|
||||
type=method
|
||||
|
|
|
|||
Loading…
Reference in a new issue