개정판 ea6b6336
issue #700: fix user license for vietnam
Change-Id: I7b10db340b6e8c2b9fae8ae2fdce3ae19a322b66
DTI_PID/DTI_PID/App.py | ||
---|---|---|
122 | 122 |
else: |
123 | 123 |
qtmodern.styles.darkorange(app) |
124 | 124 |
""" |
125 |
if True:# == QLicenseDialog.check_license_key():
|
|
125 |
if True == QLicenseDialog.check_license_key(): |
|
126 | 126 |
dlg = Ui_Dialog() |
127 | 127 |
selectedProject = dlg.showDialog() |
128 | 128 |
if selectedProject is not None: |
DTI_PID/DTI_PID/AppDocData.py | ||
---|---|---|
652 | 652 |
if configs and 'DOFTECH' in configs[0].value: |
653 | 653 |
self.deleteAppConfigs('app', 'mode') |
654 | 654 |
configs = None |
655 |
else:
|
|
655 |
elif configs:
|
|
656 | 656 |
configs = [Config('app', 'mode', 'advanced')] |
657 |
else: |
|
658 |
self.deleteAppConfigs('app', 'mode') |
|
657 | 659 |
else: |
658 | 660 |
configs = None |
659 | 661 |
|
DTI_PID/DTI_PID/License.py | ||
---|---|---|
136 | 136 |
|
137 | 137 |
try: |
138 | 138 |
_translate = QCoreApplication.translate |
139 |
decoded = QLicenseDialog.decode(QLicenseDialog.KEY, self.license) |
|
139 |
origin_text = self.license |
|
140 |
decoded = QLicenseDialog.decode(QLicenseDialog.KEY, self.license.replace('DOFTECH', '')) |
|
140 | 141 |
if decoded.upper() == os.environ['COMPUTERNAME'].upper(): |
141 | 142 |
appDocData = AppDocData.instance() |
142 | 143 |
|
143 | 144 |
# save license key |
144 | 145 |
configs = [] |
145 |
configs.append(Config('app', 'license', self.license))
|
|
146 |
configs.append(Config('app', 'license', origin_text))
|
|
146 | 147 |
appDocData.saveAppConfigs(configs) |
147 | 148 |
# up to here |
148 | 149 |
|
내보내기 Unified diff