config.session => session

This commit is contained in:
Emmanuel Garette 2019-12-03 08:33:34 +01:00
parent 61f347aad6
commit 6a5343f663
3 changed files with 6 additions and 6 deletions

View File

@ -10,8 +10,8 @@ from cucchiaiata.i18n import _
def main():
try:
if argv[1] in ['config.session.server.configure',
'config.session.servermodel.configure']:
if argv[1] in ['session.server.configure',
'session.servermodel.configure']:
Configuration().get()
else:
parser = Parser()

View File

@ -36,8 +36,8 @@ version: {version}"""
self.allow_insecure_https = config.get('allow_insecure_https', False)
TO_JSON = {'config.session.server.get': ['content'],
'config.session.servermodel.get': ['content'],
TO_JSON = {'session.server.get': ['content'],
'session.servermodel.get': ['content'],
'server.describe': ['configuration'],
'server.exec.describe': ['return']}

View File

@ -28,7 +28,7 @@ class ConfigAPI(Config):
class Configuration(Common):
def configure_server(self):
if self.message == 'config.session.server.configure':
if self.message == 'session.server.configure':
type = 'server'
else:
type = 'servermodel'
@ -44,7 +44,7 @@ class Configuration(Common):
def get_parameters(self):
parameters = argv.copy()
# get and remove config.session.xxxxx.configure
# get and remove session.xxxxx.configure
self.message = parameters.pop(1)
# get and remove commandline name