Добавлена условие запуска настроек ini.env/main.profile_setup

master3.3 3.2.3
Mike Khiretskiy 10 years ago
parent e7fb25e693
commit a4ac82b6a2

@ -355,9 +355,13 @@ class VariableClDesktopUpdateProfileSet(Variable):
lastTimestamp = templateFunction.getLastElog()
iniEnv = path.join(self.Get('ur_home_path'),'.calculate/ini.env')
userIni = iniParser(iniEnv)
userTimestamp = userIni.getVar('main','elog').encode('utf-8')
if self.Get('ur_domain_set') == 'on' or \
not path.exists(iniEnv) or userTimestamp != lastTimestamp:
userTimestamp = userIni.getVar('main','elog')
if userTimestamp:
userTimestamp = userTimestamp.encode('utf-8')
profileSetup = userIni.getVar('main','profile_setup')
login_setup = profileSetup == 'on'
if (self.Get('ur_domain_set') == 'on' or login_setup or
not path.exists(iniEnv) or userTimestamp != lastTimestamp):
return 'on'
else:
return 'off'

Loading…
Cancel
Save