|
|
|
@ -16,9 +16,9 @@ import soaplib, sys, time, os
|
|
|
|
|
import threading
|
|
|
|
|
|
|
|
|
|
from soaplib.serializers.primitive import String, Integer, Any, Boolean
|
|
|
|
|
from soaplib.serializers.clazz import Array, ClassSerializer
|
|
|
|
|
from soaplib.serializers.clazz import Array
|
|
|
|
|
from soaplib.service import rpc, DefinitionBase
|
|
|
|
|
from calculate.core.server.api_types import ReturnedMessage
|
|
|
|
|
from calculate.core.server.api_types import ReturnedMessage,CommonInfo
|
|
|
|
|
from calculate.core.server.api_types import ChoiceValue, Table, Option, Field, \
|
|
|
|
|
GroupField, ViewInfo, ViewParams
|
|
|
|
|
from calculate.lib.datavars import VariableError,DataVarsError
|
|
|
|
@ -36,15 +36,9 @@ from functools import wraps,WRAPPER_ASSIGNMENTS
|
|
|
|
|
|
|
|
|
|
__ = getLazyLocalTranslate(_)
|
|
|
|
|
|
|
|
|
|
class DesktopInfo(ClassSerializer):
|
|
|
|
|
class DesktopInfo(CommonInfo):
|
|
|
|
|
"""Parameters for method install"""
|
|
|
|
|
ur_login = String
|
|
|
|
|
cl_verbose_set = String
|
|
|
|
|
cl_templates_locate = Array(String)
|
|
|
|
|
|
|
|
|
|
Default = Array(String)
|
|
|
|
|
CheckOnly = Boolean
|
|
|
|
|
CheckAll = Boolean
|
|
|
|
|
|
|
|
|
|
desktopCatchExcept = catchExcept(VariableError,DataVarsError,
|
|
|
|
|
cl_desktop.DesktopError)
|
|
|
|
@ -72,7 +66,7 @@ class Wsdl:
|
|
|
|
|
dv.addGroup(None,
|
|
|
|
|
normal=('ur_login',),
|
|
|
|
|
expert=('cl_verbose_set','cl_templates_locate'),
|
|
|
|
|
next_label=_("Configure"))
|
|
|
|
|
next_label=_("Configure"),)
|
|
|
|
|
return dv
|
|
|
|
|
|
|
|
|
|
@rpc(Integer, ViewParams,_returns = ViewInfo)
|
|
|
|
|