Testing fixes for security improvement, thread safety, and memory management.
This commit is contained in:
@ -16,16 +16,16 @@ class applicationManager():
|
||||
def getCurrentApplication(self):
|
||||
currApp = self.env['screen']['newApplication'].upper()
|
||||
if not currApp:
|
||||
currApp == 'DEFAULT'
|
||||
currApp = 'DEFAULT'
|
||||
if currApp == '':
|
||||
currApp == 'DEFAULT'
|
||||
currApp = 'DEFAULT'
|
||||
return currApp
|
||||
def getPrevApplication(self):
|
||||
prevApp = self.env['screen']['oldApplication'].upper()
|
||||
if not prevApp:
|
||||
prevApp == 'DEFAULT'
|
||||
prevApp = 'DEFAULT'
|
||||
if prevApp == '':
|
||||
prevApp == 'DEFAULT'
|
||||
prevApp = 'DEFAULT'
|
||||
return prevApp
|
||||
def isApplicationChange(self):
|
||||
return self.env['screen']['oldApplication'] != self.env['screen']['newApplication']
|
||||
|
@ -92,7 +92,7 @@ class memoryManager():
|
||||
def clearCurrentIndexList(self, name):
|
||||
if not self.listStorageValid(name):
|
||||
return False
|
||||
self.listStorage[name]['index'] = []
|
||||
self.listStorage[name]['list'] = []
|
||||
self.listStorage[name]['index'] = -1
|
||||
def getCurrentIndex(self,name):
|
||||
if not self.listStorageValid(name):
|
||||
@ -103,7 +103,7 @@ class memoryManager():
|
||||
try:
|
||||
return self.listStorage[name]['index']
|
||||
except:
|
||||
retrun -1
|
||||
return -1
|
||||
def isIndexListEmpty(self, name):
|
||||
if not self.listStorageValid(name):
|
||||
return False
|
||||
|
Reference in New Issue
Block a user