#NEWLINE# def __init__( self , filters , script ) : #NEWLINE# #INDENT# if ( not isinstance ( script , InterceptorScript ) ) : #NEWLINE# #INDENT# raise InvalidInterceptorParameterError ( 'script is not an instance of InterceptorScript' ) #NEWLINE# #UNINDENT# if ( not isinstance ( filters , list ) ) : #NEWLINE# #INDENT# raise InvalidInterceptorParameterError ( 'filters must be a list' ) #NEWLINE# #UNINDENT# for _filter in filters : #NEWLINE# #INDENT# if ( not isinstance ( _filter , Filter ) ) : #NEWLINE# #INDENT# raise InvalidInterceptorParameterError ( ( 'filter must be an instance of Filter, %s found' % type ( _filter ) ) ) #NEWLINE# #UNINDENT# if ( not ( self . type in self . usedFor ) ) : #NEWLINE# #INDENT# raise InvalidInterceptorFilterError ( ( 'filter types (%s) is not compatible with this interceptor type (%s)' % ( _filter . usedFor , self . type ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# self . filters = filters #NEWLINE# self . script = script #NEWLINE# self . _str = ( '%s/%s' % ( self . __class__ . __name__ , repr ( script ) ) )