peewee Documentation Release 2.10.2
object_list(template_name, qr, var_name='object_list', **kwargs): kwargs.update( page=int(request.args.get('page', 1)), pages=qr.count() / 20 + 1 ) kwargs[var_name] = qr.paginate(kwargs['page']) post=post) object_list(template_name, query[, context_variable='object_list'[, paginate_by=20[, page_var='page'[, check_bounds=True[, **kwargs]]]]]) Retrieve a paginated list of objects specified by the variable name to use for th paginated object list. paginate_by – Number of objects per-page. page_var – The name of the GET argument which contains the page. check_bounds – Whether to check that the given0 码力 | 275 页 | 276.96 KB | 1 年前3peewee Documentation Release 2.10.2
def object_list(template_name, qr, var_name='object_list', **kwargs): kwargs.update( page=int(request.args.get('page', 1)), pages=qr.count() / 20 + 1 ) kwargs[var_name] = qr.paginate(kwargs['page']) post=post) object_list(template_name, query[, context_variable=’object_list’[, paginate_by=20[, page_var=’page’[, check_bounds=True[, **kwargs]]]]]) Retrieve a paginated list of objects specified by the variable name to use for the paginated object list. • paginate_by – Number of objects per-page. • page_var – The name of the GET argument which contains the page. • check_bounds – Whether to check that the0 码力 | 221 页 | 844.06 KB | 1 年前3peewee Documentation Release 3.0.0
object_list(template_name, qr, var_name='object_list', **kwargs): kwargs.update( page=int(request.args.get('page', 1)), pages=qr.count() / 20 + 1) kwargs[var_name] = qr.paginate(kwargs['page']) post=post) object_list(template_name, query[, context_variable='object_list'[, paginate_by=20[, page_var='page'[, check_bounds=True[, **kwargs]]]]]) Parameters: template_name – The name of the template to variable name to use for th paginated object list. paginate_by – Number of objects per-page. page_var – The name of the GET argument which contains the page. check_bounds – Whether to check that the given0 码力 | 319 页 | 361.50 KB | 1 年前3peewee Documentation Release 3.5.0
object_list(template_name, qr, var_name='object_list', **kwargs): kwargs.update( page=int(request.args.get('page', 1)), pages=qr.count() / 20 + 1) kwargs[var_name] = qr.paginate(kwargs['page']) post=post) object_list(template_name, query[, context_variable='object_list'[, paginate_by=20[, page_var='page'[, check_bounds=True[, **kwargs]]]]]) template_name – The name of the template to render. query variable name to use for th paginated object list. paginate_by – Number of objects per-page. page_var – The name of the GET argument which contains the page. check_bounds – Whether to check that the given0 码力 | 347 页 | 380.80 KB | 1 年前3peewee Documentation Release 3.4.0
object_list(template_name, qr, var_name='object_list', **kwargs): kwargs.update( page=int(request.args.get('page', 1)), pages=qr.count() / 20 + 1) kwargs[var_name] = qr.paginate(kwargs['page']) post=post) object_list(template_name, query[, context_variable='object_list'[, paginate_by=20[, page_var='page'[, check_bounds=True[, **kwargs]]]]]) template_name – The name of the template to render. query variable name to use for th paginated object list. paginate_by – Number of objects per-page. page_var – The name of the GET argument which contains the page. check_bounds – Whether to check that the given0 码力 | 349 页 | 382.34 KB | 1 年前3peewee Documentation Release 3.1.0
object_list(template_name, qr, var_name='object_list', **kwargs): kwargs.update( page=int(request.args.get('page', 1)), pages=qr.count() / 20 + 1) kwargs[var_name] = qr.paginate(kwargs['page']) post=post) object_list(template_name, query[, context_variable='object_list'[, paginate_by=20[, page_var='page'[, check_bounds=True[, **kwargs]]]]]) template_name – The name of the template to render. query variable name to use for th paginated object list. paginate_by – Number of objects per-page. page_var – The name of the GET argument which contains the page. check_bounds – Whether to check that the given0 码力 | 332 页 | 370.77 KB | 1 年前3peewee Documentation Release 3.5.0
def object_list(template_name, qr, var_name='object_list', **kwargs): kwargs.update( page=int(request.args.get('page', 1)), pages=qr.count() / 20 + 1) kwargs[var_name] = qr.paginate(kwargs['page']) return Release 3.5.0 object_list(template_name, query[, context_variable=’object_list’[, paginate_by=20[, page_var=’page’[, check_bounds=True[, **kwargs]]]]]) Parameters • template_name – The name of the template variable name to use for the paginated object list. • paginate_by – Number of objects per-page. • page_var – The name of the GET argument which contains the page. • check_bounds – Whether to check that the0 码力 | 282 页 | 1.02 MB | 1 年前3peewee Documentation Release 3.3.0
def object_list(template_name, qr, var_name='object_list', **kwargs): kwargs.update( page=int(request.args.get('page', 1)), pages=qr.count() / 20 + 1) kwargs[var_name] = qr.paginate(kwargs['page']) return post=post) object_list(template_name, query[, context_variable=’object_list’[, paginate_by=20[, page_var=’page’[, check_bounds=True[, **kwargs]]]]]) Parameters • template_name – The name of the template variable name to use for the paginated object list. • paginate_by – Number of objects per-page. • page_var – The name of the GET argument which contains the page. • check_bounds – Whether to check that the0 码力 | 280 页 | 1.02 MB | 1 年前3peewee Documentation Release 3.4.0
def object_list(template_name, qr, var_name='object_list', **kwargs): kwargs.update( page=int(request.args.get('page', 1)), pages=qr.count() / 20 + 1) kwargs[var_name] = qr.paginate(kwargs['page']) return post=post) object_list(template_name, query[, context_variable=’object_list’[, paginate_by=20[, page_var=’page’[, check_bounds=True[, **kwargs]]]]]) Parameters • template_name – The name of the template variable name to use for the paginated object list. • paginate_by – Number of objects per-page. • page_var – The name of the GET argument which contains the page. • check_bounds – Whether to check that the0 码力 | 284 页 | 1.03 MB | 1 年前3peewee Documentation Release 3.6.0
object_list(template_name, qr, var_name='object_list', **kwargs): kwargs.update( page=int(request.args.get('page', 1)), pages=qr.count() / 20 + 1) kwargs[var_name] = qr.paginate(kwargs['page']) post=post) object_list(template_name, query[, context_variable='object_list'[, paginate_by=20[, page_var='page'[, check_bounds=True[, **kwargs]]]]]) template_name – The name of the template to render. query variable name to use for th paginated object list. paginate_by – Number of objects per-page. page_var – The name of the GET argument which contains the page. check_bounds – Whether to check that the given0 码力 | 377 页 | 399.12 KB | 1 年前3
共 16 条
- 1
- 2