update regarding multiple DBMS payloads

This commit is contained in:
Miroslav Stampar
2011-02-13 21:20:21 +00:00
parent 45a005737d
commit 5fb11fd173
3 changed files with 33 additions and 6 deletions

View File

@@ -2368,3 +2368,14 @@ def getExceptionFrameLocals():
retVal = trace.tb_frame.f_locals
return retVal
def intersect(valueA, valueB):
"""
Returns intersection of the array-ized values
"""
retVal = None
if valueA and valueB:
retVal = [val for val in arrayizeValue(valueA) if val in arrayizeValue(valueB)]
return retVal