config.session => session
This commit is contained in:
parent
61f347aad6
commit
6a5343f663
|
@ -10,8 +10,8 @@ from cucchiaiata.i18n import _
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
try:
|
try:
|
||||||
if argv[1] in ['config.session.server.configure',
|
if argv[1] in ['session.server.configure',
|
||||||
'config.session.servermodel.configure']:
|
'session.servermodel.configure']:
|
||||||
Configuration().get()
|
Configuration().get()
|
||||||
else:
|
else:
|
||||||
parser = Parser()
|
parser = Parser()
|
||||||
|
|
|
@ -36,8 +36,8 @@ version: {version}"""
|
||||||
self.allow_insecure_https = config.get('allow_insecure_https', False)
|
self.allow_insecure_https = config.get('allow_insecure_https', False)
|
||||||
|
|
||||||
|
|
||||||
TO_JSON = {'config.session.server.get': ['content'],
|
TO_JSON = {'session.server.get': ['content'],
|
||||||
'config.session.servermodel.get': ['content'],
|
'session.servermodel.get': ['content'],
|
||||||
'server.describe': ['configuration'],
|
'server.describe': ['configuration'],
|
||||||
'server.exec.describe': ['return']}
|
'server.exec.describe': ['return']}
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ class ConfigAPI(Config):
|
||||||
|
|
||||||
class Configuration(Common):
|
class Configuration(Common):
|
||||||
def configure_server(self):
|
def configure_server(self):
|
||||||
if self.message == 'config.session.server.configure':
|
if self.message == 'session.server.configure':
|
||||||
type = 'server'
|
type = 'server'
|
||||||
else:
|
else:
|
||||||
type = 'servermodel'
|
type = 'servermodel'
|
||||||
|
@ -44,7 +44,7 @@ class Configuration(Common):
|
||||||
def get_parameters(self):
|
def get_parameters(self):
|
||||||
parameters = argv.copy()
|
parameters = argv.copy()
|
||||||
|
|
||||||
# get and remove config.session.xxxxx.configure
|
# get and remove session.xxxxx.configure
|
||||||
self.message = parameters.pop(1)
|
self.message = parameters.pop(1)
|
||||||
|
|
||||||
# get and remove commandline name
|
# get and remove commandline name
|
||||||
|
|
Loading…
Reference in New Issue