Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)

src/m/a/max-3.6/max/rest/utils.py   max(Download)
from datetime import datetime
from rfc3339 import rfc3339
from max.exceptions import InvalidSearchParams, Unauthorized
from pyramid.threadlocal import get_current_registry
from pyramid.settings import asbool
        limit = int(limit)
        raise InvalidSearchParams('limit must be a positive integer')
        if limit:
            params['after'] = ObjectId(after)
            raise InvalidSearchParams('after must be a valid ObjectId BSON identifier')
    before = request.params.get('before')
    if before:
            params['before'] = ObjectId(before)
            raise InvalidSearchParams('before must be a valid ObjectId BSON identifier')
    if 'before' in params and 'after' in params:
        raise InvalidSearchParams('only one offset filter is allowed, after or before')
    hashtags = request.params.getall('hashtag')

src/m/a/max-3.6/max/decorators.py   max(Download)
# -*- coding: utf-8 -*-
from max.exceptions import MissingField, ObjectNotSupported, ObjectNotFound, DuplicatedItemError, UnknownUserError, Unauthorized, InvalidSearchParams, InvalidPermission, ValidationError, Forbidden
from max.exceptions import JSONHTTPUnauthorized, JSONHTTPBadRequest, JSONHTTPNotFound, JSONHTTPForbidden, JSONHTTPInternalServerError
from bson.errors import InvalidId
from max.MADMax import MADMaxDB