code refactoring

This commit is contained in:
Miroslav Stampar
2010-10-25 14:06:56 +00:00
parent 9c94a233a1
commit 24c5d7b313
4 changed files with 16 additions and 3 deletions

View File

@@ -1479,7 +1479,19 @@ def commonFinderOnly(initial, sequence):
return longestCommonPrefix(*filter(lambda x: x.startswith(initial), sequence))
def pushValue(value):
"""
Push value to the stack
"""
kb.valueStack.append(value)
def popValue():
"""
Pop value from the stack
"""
return kb.valueStack.pop()
def wasLastRequestError():
"""
Returns True if the last web request resulted in a (recognized) DBMS error page
"""
return kb.lastErrorPage and kb.lastErrorPage[0]==kb.lastRequestUID