|
|
|
@ -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,11 @@ from functools import wraps,WRAPPER_ASSIGNMENTS
|
|
|
|
|
|
|
|
|
|
__ = getLazyLocalTranslate(_)
|
|
|
|
|
|
|
|
|
|
class UpdateInfo(ClassSerializer):
|
|
|
|
|
class UpdateInfo(CommonInfo):
|
|
|
|
|
"""Parameters for method install"""
|
|
|
|
|
cl_update_rev_set = String
|
|
|
|
|
cl_rebuild_world_set = String
|
|
|
|
|
|
|
|
|
|
Default = Array(String)
|
|
|
|
|
CheckOnly = Boolean
|
|
|
|
|
CheckAll = Boolean
|
|
|
|
|
|
|
|
|
|
updateCatchExcept = catchExcept(VariableError,DataVarsError,
|
|
|
|
|
cl_update.UpdateError)
|
|
|
|
|
|
|
|
|
@ -70,6 +66,8 @@ class Wsdl:
|
|
|
|
|
dv.Set('cl_action','sync',True)
|
|
|
|
|
dv.addGroup(None,
|
|
|
|
|
normal=('cl_rebuild_world_set','cl_update_rev_set'),
|
|
|
|
|
expert=('cl_templates_locate',
|
|
|
|
|
'cl_verbose_set','cl_dispatch_conf'),
|
|
|
|
|
next_label=_("Update"))
|
|
|
|
|
return dv
|
|
|
|
|
|
|
|
|
|