Commit Graph

469 Commits

Author SHA1 Message Date
Pablo Martín 1a96363587 Update the doc 2012-04-10 12:26:09 +02:00
Pablo Martín 183d0b9745 Change the name of the new columns and raise a exception if the
template name and template column are None
2012-04-10 11:01:00 +02:00
Bradley Ayers a0503aa533 Fix more python 2.6.4 bugs, bump to v0.10.4 2012-04-10 11:04:56 +10:00
Bradley Ayers 25394957d5 Bump to v0.10.3 2012-04-06 07:44:13 +10:00
Bradley Ayers 1d7cf79383 Localise Django 1.3 dependency to Table.as_html 2012-04-06 07:41:34 +10:00
Bradley Ayers 5fe3241207 Fix some issues causing problems on Python 2.6 2012-04-06 07:41:13 +10:00
Pablo Martín 6c236fc124 Add new columns type: AbsoluteLinkColumn, EmailLinkColumn
And add a new feature in TemplateColumn
2012-04-02 12:56:06 +02:00
Bradley Ayers 288d4014f7 Made Column attrs argument default to Attrs(), to avoid deprecation errors 2012-03-29 09:51:49 +10:00
Bradley Ayers d4e7bd35bd Fix tests on Django 1.3.1, include example templates (fixes #66), bump to v0.10.2 2012-03-27 06:43:36 +10:00
Bradley Ayers 2e941c71e5 Polish merge and bump to v0.10.1 2012-03-26 14:24:40 +10:00
Christopher Keele 16df453bd3 Less prejudiced defaults. 2012-03-19 19:28:47 -05:00
Christopher Keele b45a40ec1b Honor paginators default per_pages, change nomenclature, remove sanity checks, keep pagination set to true by default. 2012-03-19 17:37:12 -05:00
Christopher Keele 25956d9a97 Add django 1.4 support 2012-03-19 15:08:59 -05:00
Christopher Keele 088353ed97 Prefix newly accessible pagination variable to keep CBV mixinable and polish off #65. 2012-03-19 10:27:54 -05:00
Christopher Keele 37f1ab6ef5 Make pagination always true, keep None from throwing errors 2012-03-16 05:53:23 -05:00
Christopher Keele 8d9a581511 Tweak pagination docstring in class based view 2012-03-16 03:12:47 -05:00
Christopher Keele 6a06d525fa Keep default for non-class based views 2012-03-16 03:07:55 -05:00
Christopher Keele 00e19f1820 Expose that handy tables.paginate to the class based view, so pagination can be customized. 2012-03-16 03:02:56 -05:00
Christopher Keele 99b4eef0e6 Since pagination is true by default, and therefore calls table.paginate, the default per_page ought to actually implement pagination instead of forcing an ugly 'Page 1 of 1' at the botton of the table. 2012-03-16 02:56:35 -05:00
Damien Ayers fdeec852ad Examples use render() instead of render_to_response()
Django >= 1.3 is required now, so can use the nicer shortcuts.
2012-03-16 13:25:29 +10:00
Bradley Ayers 24e580888b Require django-attest v0.2.3, adds support for Django 1.4rc2 versioning scheme 2012-03-16 11:38:00 +10:00
Bradley Ayers 2130798cf0 Add SECRET_KEY setting for tests 2012-03-16 11:37:59 +10:00
Bradley Ayers 28f53c8082 Merge pull request #61 from omad/patch-1
Fix docs for pagination using RequestConfig
2012-03-15 18:17:39 -07:00
Damien Ayers f181e897d8 Fix docs for pagination using RequestConfig 2012-03-16 11:03:45 +10:00
Bradley Ayers c97bf49c30 Add github + pypi links in documentation 2012-03-14 15:45:28 +10:00
Bradley Ayers 27824efa43 Fix documentation bug, thanks Damien Ayers. 2012-03-14 15:40:00 +10:00
Bradley Ayers 910f278b95 Fix bug in TableData order_by for queryset data 2012-03-14 12:07:20 +10:00
Bradley Ayers 81757543c5 Update docs on column ordering. 2012-03-14 12:00:19 +10:00
Bradley Ayers 44689e5881 Use functions rather than special methods, e.g. type(f) instead of f.__class__ 2012-03-14 11:59:59 +10:00
Bradley Ayers dfae3b229b Add column order by accessors, fixes #20 #48. Thanks thibault, skandocious, alvarovmz
Also renamed `sortable` to `orderable`.
Bump to v0.10.0
2012-03-14 11:45:54 +10:00
Bradley Ayers d21323e77f Remove information from README about miracle2k's version 2012-03-08 17:43:39 +10:00
Bradley Ayers 258ec59c80 Fix bug in sorted column th attributes, bump to v0.9.6 2012-03-08 17:07:56 +10:00
Bradley Ayers 11b3fec168 Bump to v0.9.5 2012-03-08 15:30:00 +10:00
Bradley Ayers cc5b541d60 Update example project with colspan on footer cell. 2012-03-08 15:22:06 +10:00
Bradley Ayers dc3f28b874 Fix 'sortable' class on <th>, fixes #53.
Also tweaked CSS for paleblue theme to remove display: block from th > a
2012-03-08 15:20:53 +10:00
Bradley Ayers 908bf6b945 Table.__init__ no longer *always* calls .order_by() on querysets, fixes #55 2012-03-08 14:37:55 +10:00
Michael Hudson-Doyle 2858190f27 super call __new__ in DeclarativeColumnsMetaclass.__new__ 2012-03-08 13:39:54 +10:00
Bradley Ayers b2358b14cc Add test to expose problem with DeclarativeColumnsMetaclass inheritence 2012-03-08 13:39:48 +10:00
Bradley Ayers 1775d0fedd Update test requirements, pylint + Attest >=0.5.3 2012-03-06 10:34:36 +10:00
Bradley Ayers bde67f87f6 Fix #54 -- SafeData verbose_name are now used unmodified 2012-03-02 08:29:15 +10:00
Bradley Ayers 1d68e85a8a Add deprecation warnings when column attrs are not Attrs objects 2012-02-26 01:08:16 +10:00
Bradley Ayers 095971e925 Make LinkColumn HTML escape the URL 2012-02-26 01:01:58 +10:00
Bradley Ayers 40da680233 Add test to ensure AttributeDict properly escapes values 2012-02-26 00:52:21 +10:00
Bradley Ayers 1bb87b3f72 House cleaning after merging pull request.
- Use django.utils.html.escape rather than xml.sax
- Attach the template context to the table if using {% render_table %}
- Change TemplateColumn to look for table.context rather than table.request
- Add tests for TemplateColumn
- Add test for {% querystring %} to expose incorrect escaping bug
- Remove requirement for `request` to be in template context when using {% render_table %}
2012-02-24 09:06:51 +10:00
Chris Wilson 2ac87bbf4d List the actual valid column names on error. 2012-02-24 07:52:31 +10:00
Chris Wilson 455a62eea6 Don't rethrow exception in debug mode, to keep the old stack trace. 2012-02-24 07:52:31 +10:00
Chris Wilson 34027abaca Properly escape table sort URLs.
The URLs returned by the querystring template tag must be escaped, otherwise
we render stuff like this into the page:

	<th class="sortable"><a href="?q=foo&results_sort=created">Date Added</a></th>

which is not valid HTML: ampersand in attribute value looks like a entity, but isn't.
2012-02-24 07:52:30 +10:00
Chris Wilson 3c5ecdcd3c Remove the "hack", give templates access to all context variables, make RenderTableNode.render() more readable. 2012-02-24 07:52:30 +10:00
Bradley Ayers fe73898a73 Fix regressions and bump to v0.9.3 2012-02-22 11:45:03 +10:00
Bradley Ayers 5ca2d12a00 - `SingleTableView` now uses `RequestConfig`. This fixes issues with ``order_by_field`, `page_field`, and `per_page_field` not being honored.
- Add `Table.Meta.per_page` and change `Table.paginate` to use it as default.
- Add `title` template filter. It differs from Django's built-in `title` filter because it operates on an individual word basis and leaves words containing capitals untouched. **Warning**: use `{% load ... from ... %}` to avoid inadvertantly replacing Django's builtin `title` template filter.
- `BoundColumn.verbose_name` no longer does `capfirst`, titlising is now the responsbility of `Column.header`.
- `BoundColumn.__unicode__` now uses `BoundColumn.header` rather than `BoundColumn.verbose_name`.
2012-02-22 11:02:09 +10:00