Добавлен в список исключении при переносе профиля файл: phonondevicesrc,

т.к. при заходе в сеанс на разных машинах он разрастается и начинает
опрашивать устройства которых на данной машине нет.


git-svn-id: http://svn.calculate.ru/calculate2/calculate-client/trunk@692 c91db197-33c1-4113-bf15-f8a5c547ca64
develop
mhiretskiy 16 years ago
parent 7e75bb392d
commit 842d10c7e7

@ -1026,6 +1026,8 @@ install/6intranet" %(domain,servDn,unixDN,bindDn,bindPw)
return self.copyFilesToMovie(userHome)
return True
def syncUser(self, userName, userHome, sync):
"""Синхронизация пользовательских настроек"""
home = os.path.split(userHome)[0]
@ -1036,16 +1038,17 @@ install/6intranet" %(domain,servDn,unixDN,bindDn,bindPw)
if os.path.exists(userHome) and\
os.path.exists(homeProfile):
execStr = '/usr/bin/rsync --delete-excluded --delete \
--exclude="/.googleearth" --exclude="/Home" --exclude="/Disks" --exclude="*~" \
--exclude="/FTP" --filter="P /.googleearth" --filter="P /Home" \
--filter="P /Disks" --filter="P /FTP" -a -x %s/ %s/' %(homeProfile,userHome)
--exclude="/.googleearth" --exclude="/.kde4/share/config/phonondevicesrc" \
--exclude="*~" --exclude="/Home" --exclude="/Disks" --exclude="/FTP" \
--filter="P /.googleearth" --filter="P /Home" --filter="P /Disks" \
--filter="P /FTP" -a -x %s/ %s/' %(homeProfile,userHome)
elif sync == "logout":
if os.path.exists(userHome) and os.listdir(userHome) and\
os.path.exists(homeProfile):
execStr = '/usr/bin/rsync --delete-excluded --delete \
--exclude="/.googleearth" --exclude="/Home" --exclude="/Disks" --exclude="/FTP"\
--exclude="*~" --exclude="/.kde4/cache-*" --exclude="/.kde4/tmp-*" \
--exclude="/.kde4/socket-*" \
--exclude="/.kde4/socket-*" --exclude="/.kde4/share/config/phonondevicesrc"\
-a -x %s/ %s/'%(userHome,homeProfile)
else:
self.printERROR(_("Method syncUser: option sync=%s incorrect")\

Loading…
Cancel
Save