def _parse_maxItems(self, verbElement):
        """
        Parse maximum items out of an items request.
        """
        value = verbElement.getAttribute('max_items')

        if value:
            try:
                self.maxItems = int(value)
            except __HOLE__:
                raise BadRequest(text="Field max_items requires a positive " +
                                      "integer value")
dataset/ETHPy150Open ralphm/wokkel/wokkel/pubsub.py/PubSubRequest._parse_maxItems