Изменён порядок вывода репозиториев в таблице при переключении профиля

parent 96c51bb55a
commit bdc1ededac

@ -39,7 +39,8 @@ from ..build_storage import BuildStorage, Build
from ..drive_spool import DriveSpool
from .action import Actions as BuilderActions
from calculate.lib.datavars import (Variable, VariableError, ReadonlyVariable,
TableVariable, WRITEABLE)
TableVariable, WRITEABLE,
ReadonlyTableVariable, HumanReadable)
from functools import wraps
_ = lambda x: x
@ -1146,6 +1147,22 @@ class VariableClBuilderBranchData(TableVariable):
raise VariableError(_("Repository %s not found") % value)
class VariableClBuilderBriefBranchData(ReadonlyTableVariable):
"""
Вывод синхронизируемые репозиториев для brief
"""
source = ["cl_builder_branch_rep",
"cl_builder_branch_name"]
def init(self):
self.help = _("set references for repository (REPOSITORY:REF)")
self.label = _("Repositories references")
def get(self, hr=HumanReadable.No):
return list(reversed(self.Get('cl_builder_branch_data',
humanreadable=hr)))
class VariableClBuilderBranchRep(ReadonlyVariable):
"""
Список доступных репозиториев
@ -1652,6 +1669,7 @@ class VariableClBuilderBinhostStableSet(
return dv.Get('update.cl_update_binhost_stable_opt_set')
return self.Get('update.cl_update_binhost_stable_opt_set')
class VariableClBuilderBinhostScanSet(Variable):
"""
Сканировать или нет зеркала (переменная переключается во время действия)

@ -178,8 +178,7 @@ class Wsdl(WsdlBase):
_("Update the Build"),
normal=('cl_builder_prepared_id',
'cl_builder_binhost_stable_set',
'update.cl_update_binhost_recheck_set',
),
'update.cl_update_binhost_recheck_set',),
expert=(
'update.cl_update_sync_only_set',
'update.cl_update_other_set',
@ -198,9 +197,47 @@ class Wsdl(WsdlBase):
'cl_templates_locate',
'cl_verbose_set',
'cl_dispatch_conf'),
hide=('cl_templates_locate',
'cl_verbose_set',
'cl_dispatch_conf'),
hide=(
'cl_builder_prepared_id',
'cl_builder_binhost_stable_set',
'update.cl_update_binhost_recheck_set',
'update.cl_update_sync_only_set',
'update.cl_update_other_set',
'update.cl_update_pretend_set',
'cl_builder_sync_rep',
'update.cl_update_emergelist_set',
'update.cl_update_check_rep_set',
'update.cl_update_world',
'update.cl_update_egencache_force',
'update.cl_update_eixupdate_force',
'cl_builder_rebuild_changed_set',
'update.cl_update_skip_rb_set',
'update.cl_update_onedepth_set',
'update.cl_update_cleanpkg_set',
'cl_builder_branch_data',
'cl_templates_locate',
'cl_verbose_set',
'cl_builder_branch_data',
'cl_dispatch_conf'),
brief=(
'cl_builder_prepared_id',
'cl_builder_binhost_stable_set',
'update.cl_update_binhost_recheck_set',
'update.cl_update_sync_only_set',
'update.cl_update_other_set',
'update.cl_update_pretend_set',
'cl_builder_sync_rep',
'update.cl_update_emergelist_set',
'update.cl_update_check_rep_set',
'update.cl_update_world',
'update.cl_update_egencache_force',
'update.cl_update_eixupdate_force',
'cl_builder_rebuild_changed_set',
'update.cl_update_skip_rb_set',
'update.cl_update_onedepth_set',
'update.cl_update_cleanpkg_set',
'cl_builder_brief_branch_data',
),
next_label=_("Next"))],
'brief': {'next': __("Perform"),
'name': __("Update the Build")}

Loading…
Cancel
Save