def __init__(self): RequestParser.__init__(self) self.add_argument("page_index", type=int, location=["args", "form"], help="Page index, start from 1.") self.add_argument("page_size", type=int, location=["args", "form"], help="Page size, > 0.")
def __init__(self): RequestParser.__init__(self) self.add_argument("id", type=int, location=["args", "form"], help="ID") self.add_argument("ids", type=IntCombinedInStrField, location=["args", "form"], help="IDs combined with ','") self.add_argument("desc", type=str, location=["args", "form"], help="Disable or delete reason.")
def __init__(self, **kw): if 'argument_class' not in kw: kw['argument_class'] = _Argument RequestParser.__init__(self, **kw)
def __init__(self): RequestParser.__init__(self, argument_class=CustomArgument)