def filter_page_size(self, value):
        try:
            page_size = fields.IntegerField().to_internal_value(value)
        except fields.ValidationError:
            page_size = 20

        if not (1 <= page_size < 100):
            page_size = 100

        self.query_values['page_size'] = page_size

        return F()
Initialize the handler.
dataset/ETHPy150Open mozilla/kitsune/kitsune/community/api.py/TopContributorsBase.filter_page_size--crossover with--dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/logging/__init__.py/StreamHandler.__init__