Browse Source

FIX: fixed multiple typos

master 3.7.2.2
idziubenko 6 months ago
parent
commit
a3e3b179b7
  1. 7
      pym/client/client.py
  2. 3
      pym/client/utils/cl_client_sync.py
  3. 7
      pym/client/variables/client.py

7
pym/client/client.py

@ -1433,11 +1433,12 @@ class Client(commandServer, encrypt, Desktop):
pathConfig = os.path.join(userHome,
self.pathConfig)
try:
if iniParser(configFileName).setVar(
if iniParser(pathConfig).setVar(
'rsync', {'exitcode': rsync.getExitCode()}):
os.chmod(configFileName, 0o600)
os.chown(configFileName, uid, gid)
os.chmod(pathConfig, 0o600)
os.chown(pathConfig, uid, gid)
except Exception:
pass
if ps.exitstatus != 0:

3
pym/client/utils/cl_client_sync.py

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

7
pym/client/variables/client.py

@ -664,7 +664,7 @@ class SyncHelper():
cpRemote.read_string(iniEnvRemoteData)
xSessionCur = cpCur.get('main', 'xsession', fallback=None)
xSessionThis = cpThis.get('main', 'xsession', fallback=None)
xSessionThis = cpRemote.get('main', 'xsession', fallback=None)
if curStatusSync == "success_logout" and \
xSessionCur == xSessionThis:
thisTimeObj = self.getSyncDate(osLinuxShort, ps)
@ -749,6 +749,11 @@ class VariableClClientSyncReplicationSet(SyncHelper, ReadonlyVariable):
remotehost = self.Get(self.host_varname)
ps = ProfileSyncer(remotehost, 2009, user, pwd)
#there was a typo before - profilePath was missing
profilePath = self.Select('cl_client_user_mount_path',
where='cl_client_user_mount_name',
eq=self.profile_type, limit=1)
if ps.check():
return "on" if self.checkNeedSyncNew(
self.Get('ur_home_path'), profilePath,

Loading…
Cancel
Save