Re: [flask] Flask-ext SQLalchemy question on pagination
- From:
- Adam Patterson
- Date:
- 2012-01-03 @ 14:51
It sets self.items which is used in templates
{% for item in pagination.items %}
<li>{{ item }}</li>
{% endfor %}
On Mon, Jan 2, 2012 at 9:45 PM, Khalil El Kouhen
<khalil.elkouhen@gmail.com> wrote:
> In class flaskext.sqlalchemy.Pagination(query, page, per_page, total,
> items), except for the constructor items doesn't seem to be used by
> this class ?
>
> Is this really the case or is there something I'm missing ?
>
> --
> Khalil EL KOUHEN
> Directeur HEC Rabat
> www.hec.ma Tél.: 212 (0)5 37 67 12 76 Fax.: 212 (0)5 37 67 12 77