From 83e264601773b224c3b94b8ff5c9c5732e4cb620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D0=B8=D1=80=D0=B5=D1=86=D0=BA=D0=B8=D0=B9=20=D0=9C?= =?UTF-8?q?=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Fri, 24 Mar 2017 15:01:25 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D0=BD=D0=BD?= =?UTF-8?q?=D0=B0=D1=8F=20cl=5Fsync=5Fmoved=5Fset=20=D0=B4=D0=BB=D1=8F=20?= =?UTF-8?q?=D0=B2=D0=BE=D0=B7=D0=BC=D0=BE=D0=B6=D0=BD=D0=BE=D1=81=D1=82?= =?UTF-8?q?=D0=B8=20=D0=BE=D1=82=D0=BA=D0=BB=D1=8E=D1=87=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit переноса файлов из домашней директории в Home/Moved --- pym/client/utils/cl_client_sync.py | 1 + pym/client/variables/client.py | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/pym/client/utils/cl_client_sync.py b/pym/client/utils/cl_client_sync.py index b047d7c..a338129 100644 --- a/pym/client/utils/cl_client_sync.py +++ b/pym/client/utils/cl_client_sync.py @@ -301,6 +301,7 @@ class ClClientSyncLogoutAction(Action): 'message': __("Moving non-profile files to the Home/Moved directory"), 'method': 'Client.moveHomeDir(ur_home_path,"Moved","homes",' 'cl_moved_skip_path)', + 'condition': lambda Get: Get('cl_sync_moved_set') == 'on' }, # архивировать симлинки {'name': 'domain_sync:tar_symlinks', diff --git a/pym/client/variables/client.py b/pym/client/variables/client.py index 9c9793e..bae158f 100644 --- a/pym/client/variables/client.py +++ b/pym/client/variables/client.py @@ -741,3 +741,12 @@ class VariableClRsyncVer(ReadonlyVariable): if data: return data[0]['PVR'] return "" + + +class VariableClSyncMovedSet(Variable): + """ + Использовать или нет перенос файлов из домашней директории в Home/Moved при + синхронизации + """ + type = "bool" + value = "on"