|
|
|
@ -76,7 +76,7 @@ class Wsdl:
|
|
|
|
|
"""
|
|
|
|
|
@rpc(Integer, ClientInfo, _returns = Array(ReturnedMessage))
|
|
|
|
|
@core_method(category=__('Client'),title=__('Domain'),
|
|
|
|
|
image='applications-other',
|
|
|
|
|
image='network-workgroup',
|
|
|
|
|
gui=True,command='cl-client',
|
|
|
|
|
rights=['domain'])
|
|
|
|
|
def client(self, sid, info):
|
|
|
|
@ -102,11 +102,14 @@ class Wsdl:
|
|
|
|
|
dv = self.get_cache(sid,"client","vars")
|
|
|
|
|
if not dv:
|
|
|
|
|
dv = self.client_vars()
|
|
|
|
|
#if hasattr(params,"clienttype") and params.clienttype == "gui":
|
|
|
|
|
# if dv.Get('cl_remote_host') == '':
|
|
|
|
|
# dv.Set('cl_localhost_set',"on")
|
|
|
|
|
# else:
|
|
|
|
|
# dv.Set('cl_localhost_set',"off")
|
|
|
|
|
if hasattr(params,"clienttype") and params.clienttype == "gui":
|
|
|
|
|
try:
|
|
|
|
|
if dv.Get('cl_remote_host') == '':
|
|
|
|
|
dv.Set('cl_localhost_set',"on")
|
|
|
|
|
else:
|
|
|
|
|
dv.Set('cl_localhost_set',"off")
|
|
|
|
|
except VariableError as e:
|
|
|
|
|
pass
|
|
|
|
|
else:
|
|
|
|
|
dv.processRefresh()
|
|
|
|
|
view = ViewInfo(dv,viewparams=params)
|
|
|
|
@ -188,7 +191,7 @@ class Wsdl:
|
|
|
|
|
"""
|
|
|
|
|
@rpc(Integer, ClientPasswdInfo, _returns = Array(ReturnedMessage))
|
|
|
|
|
@core_method(category=__('Client'),title=__('Change password'),
|
|
|
|
|
image='applications-other',
|
|
|
|
|
image='system-users',
|
|
|
|
|
gui=True,command='cl-passwd',
|
|
|
|
|
rights=['password'],user=True)
|
|
|
|
|
def clientpasswd(self, sid, info):
|
|
|
|
|