@staticmethod
    def _limits(get_vars):
        """
            Extract page limits (start and limit) from GET vars

            @param get_vars: the GET vars
        """

        start = get_vars.get("start", None)
        limit = get_vars.get("limit", 0)
        # Deal with overrides (pagination limits come last)
        if isinstance(start, list):
            start = start[-1]
        if isinstance(limit, list):
            limit = limit[-1]
        if limit:
            # Ability to override default limit to "Show All"
            if limit.lower() == "none":
                #start = None # needed?
                limit = None
            else:
                try:
                    start = int(start) if start is not None else None
                    limit = int(limit)
                except (__HOLE__, TypeError):
                    # Fall back to defaults
                    start, limit = None, 0
        else:
            # Use defaults, assume sspag because this is a
            # pagination request by definition
            start = None
            limit = 0

        return start, limit

# END =========================================================================
dataset/ETHPy150Open sahana/eden/modules/s3/s3crud.py/S3CRUD._limits