code: def should_send(self, request):
          
          if self.filters.get('whitelist', None):
              return request.tree.type in self.filters['whitelist']
          elif self.filters.get('blacklist', None):
              return request.tree.type not in self.filters['blacklist']
          else:
              return True
docs: Returns whether or not the request should be sent to the
          modules, based on the filters.