@@ -150,16 +150,16 @@ def __init__(self, auth_stub):
150
150
151
151
def additionalOperandToSimpleFilter (self , operand ):
152
152
simpleFilter = self .auth_stub .soap_client .factory .create ('SimpleFilterPart' )
153
- for k , v in additional_operand .items ():
153
+ for k , v in operand .items ():
154
154
simpleFilter [k ] = v
155
155
return simpleFilter
156
156
157
157
158
158
def complexFilter (self , leftOperand , rightOperand , logicalOperator , additionalOperands ):
159
159
complexFilter = self .auth_stub .soap_client .factory .create ('ComplexFilterPart' )
160
160
161
- complexFilter ["LeftOperand" ] = self .filterFor (self . auth_stub , leftOperand )
162
- complexFilter ["RightOperand" ] = self .filterFor (self . auth_stub , rightOperand )
161
+ complexFilter ["LeftOperand" ] = self .filterFor (leftOperand )
162
+ complexFilter ["RightOperand" ] = self .filterFor (rightOperand )
163
163
complexFilter ["LogicalOperator" ] = logicalOperator
164
164
165
165
for op in additionalOperands :
@@ -182,13 +182,13 @@ def simpleFilter(self, operand):
182
182
def filterFor (self , operand ):
183
183
result = None
184
184
if operand .has_key ('LogicalOperator' ):
185
- result = self .complexFilter (self . auth_stub ,
185
+ result = self .complexFilter (
186
186
operand ["LeftOperand" ],
187
187
operand ["RightOperand" ],
188
188
operand ["LogicalOperator" ],
189
189
operand .get ('AdditionalOperands' , []))
190
190
else :
191
- result = self .simpleFilter (self . auth_stub , operand )
191
+ result = self .simpleFilter (operand )
192
192
193
193
return result
194
194
0 commit comments