fixed more typos

master 3.7.2.3
idziubenko 2 years ago
parent a3e3b179b7
commit f17052d205

@ -1384,7 +1384,6 @@ class Client(commandServer, encrypt, Desktop):
""" """
Синхронизация профиля пользователя Синхронизация профиля пользователя
""" """
execStr = ""
rsyncopts = list(rsyncopts) rsyncopts = list(rsyncopts)
skipPaths = self.clVars.Get("cl_sync_skip_path") skipPaths = self.clVars.Get("cl_sync_skip_path")
if not skipPaths: if not skipPaths:
@ -1431,14 +1430,12 @@ class Client(commandServer, encrypt, Desktop):
for i in ps.sync("%s/"%source, "%s/"%target, *rsyncParams): for i in ps.sync("%s/"%source, "%s/"%target, *rsyncParams):
self.setProgress(i) self.setProgress(i)
pathConfig = os.path.join(userHome, configFileName = os.path.join(remoteProfile, self.configFileDesktop)
self.pathConfig)
try: try:
if iniParser(pathConfig).setVar( if iniParser(configFileName).setVar(
'rsync', {'exitcode': rsync.getExitCode()}): 'rsync', {'exitcode': ps.exitstatus}):
os.chmod(pathConfig, 0o600) os.chmod(configFileName, 0o600)
os.chown(pathConfig, uid, gid) os.chown(configFileName, uid, gid)
except Exception: except Exception:
pass pass
if ps.exitstatus != 0: if ps.exitstatus != 0:

@ -296,8 +296,7 @@ class ClClientSyncLoginAction(Action):
{'name': 'newsync:domain_sync2', {'name': 'newsync:domain_sync2',
'method': 'Client.setSyncStatus(ur_home_path,ur_uid,ur_gid,"process")', 'method': 'Client.setSyncStatus(ur_home_path,ur_uid,ur_gid,"process")',
'condition': lambda Get: Get('cl_client_sync') == 'on', 'condition': lambda Get: Get('cl_client_sync') == 'on',
# }, ] + old_sync + new_sync + [ }, ] + old_sync + new_sync + [
}, ] + old_sync + [
# распаковать ссылки # распаковать ссылки
{'name': 'unpack_links', {'name': 'unpack_links',
'method': 'Client.unpackLinks(ur_home_path)', 'method': 'Client.unpackLinks(ur_home_path)',

@ -721,7 +721,6 @@ class VariableClClientRsyncProfileSet(ReadonlyVariable):
type = "bool" type = "bool"
value = "off" value = "off"
#TODO ProfileSyncer likely doesn't work in py3
class VariableClClientSyncReplicationSet(SyncHelper, ReadonlyVariable): class VariableClClientSyncReplicationSet(SyncHelper, ReadonlyVariable):
""" """
Нужно ли синхронизировать текущий профиль с удаленным доменом Нужно ли синхронизировать текущий профиль с удаленным доменом

Loading…
Cancel
Save