django-tables2.git
12 years agoMerge branch 'development' v0.6.0
Bradley Ayers [Mon, 20 Jun 2011 05:51:14 +0000 (15:51 +1000)]
Merge branch 'development'

12 years agobumped version to v0.6.0
Bradley Ayers [Mon, 20 Jun 2011 05:51:09 +0000 (15:51 +1000)]
bumped version to v0.6.0

12 years agobumped docs version to v0.6.0.dev
Bradley Ayers [Wed, 8 Jun 2011 23:07:26 +0000 (09:07 +1000)]
bumped docs version to v0.6.0.dev

12 years agorenamed to django-tables2
Bradley Ayers [Wed, 8 Jun 2011 23:06:34 +0000 (09:06 +1000)]
renamed to django-tables2

12 years ago* Table's __unicode__ method no longer returns as_html()
Bradley Ayers [Tue, 7 Jun 2011 11:39:43 +0000 (21:39 +1000)]
* Table's __unicode__ method no longer returns as_html()
* Added the ability to automatically generate columns based on a model via the Meta.model option (see docs). Resolves #2.
* Added some documentation describing how table mixins work.

12 years agoMerge branch 'development' v0.5.0
Bradley Ayers [Tue, 7 Jun 2011 03:16:40 +0000 (13:16 +1000)]
Merge branch 'development'

12 years ago* Bumped version to 0.5.0
Bradley Ayers [Tue, 7 Jun 2011 02:53:53 +0000 (12:53 +1000)]
* Bumped version to 0.5.0
* Added the ability to explicitly specify the sequence of columns. This resolves #11

12 years agocurrently broken
Bradley Ayers [Mon, 6 Jun 2011 23:12:52 +0000 (09:12 +1000)]
currently broken

12 years agoAdded import for django_tables to docs to fix problem with building.
Bradley Ayers [Mon, 6 Jun 2011 14:09:41 +0000 (00:09 +1000)]
Added import for django_tables to docs to fix problem with building.

12 years agoUpdated docstrings to adhere to my latest style fetish. Converted BoundColumns.visibl...
Bradley Ayers [Mon, 6 Jun 2011 14:08:31 +0000 (00:08 +1000)]
Updated docstrings to adhere to my latest style fetish. Converted BoundColumns.visible,all,items,sortable to use iterators

12 years agoFixed docs building, it now uses the example project so that django-tables modules...
Bradley Ayers [Mon, 6 Jun 2011 13:29:54 +0000 (23:29 +1000)]
Fixed docs building, it now uses the example project so that django-tables modules can freely import django db stuff.

12 years agoAdded ability to specify attrs keyword argument to a table constructor to override...
Bradley Ayers [Mon, 6 Jun 2011 13:29:18 +0000 (23:29 +1000)]
Added ability to specify attrs keyword argument to a table constructor to override the Table.Meta.attrs setting.

12 years agoFixed issue #8 where a TemplateSyntaxError would be raised when using {% render_table...
Bradley Ayers [Thu, 2 Jun 2011 23:04:38 +0000 (09:04 +1000)]
Fixed issue #8 where a TemplateSyntaxError would be raised when using {% render_table %} with a non-existant variable. The template tag now returns TEMPLATE_STRING_IF_INVALID when not in debug mode.

12 years agoFixed issue #9 (FieldDoesNotExist when table column accessor doesn't exist in queryse...
Bradley Ayers [Thu, 2 Jun 2011 22:30:18 +0000 (08:30 +1000)]
Fixed issue #9 (FieldDoesNotExist when table column accessor doesn't exist in queryset). It turns out the issue was due to the model lookup verbose_name functionality that was recently introduced.

12 years agoAdded SingleTableMixin that makes adding a table to a view trivially easy. Partially...
Bradley Ayers [Thu, 2 Jun 2011 13:01:48 +0000 (23:01 +1000)]
Added SingleTableMixin that makes adding a table to a view trivially easy. Partially resolves #10.

12 years agoAdded the ability to exclude columns from an entire Table class or from a specific...
Bradley Ayers [Thu, 2 Jun 2011 12:31:13 +0000 (22:31 +1000)]
Added the ability to exclude columns from an entire Table class or from a specific instance. Resolves issue #4.

12 years agobumped version to 0.5.0.dev
Bradley Ayers [Sun, 22 May 2011 20:43:55 +0000 (06:43 +1000)]
bumped version to 0.5.0.dev

12 years agoMerge branch 'development'
Bradley Ayers [Sun, 22 May 2011 20:18:26 +0000 (06:18 +1000)]
Merge branch 'development'

12 years agoColumn verbose_name now uses model field verbose_name if possible. Resolves issue #3
Bradley Ayers [Sun, 22 May 2011 12:05:26 +0000 (22:05 +1000)]
Column verbose_name now uses model field verbose_name if possible. Resolves issue #3

12 years agoMerge branch 'development'
Bradley Ayers [Sat, 21 May 2011 12:59:13 +0000 (22:59 +1000)]
Merge branch 'development'

12 years agoLinkColumn now properly handles null foreign keys. resolves issue #7
Bradley Ayers [Sat, 21 May 2011 12:53:54 +0000 (22:53 +1000)]
LinkColumn now properly handles null foreign keys. resolves issue #7

12 years agoMerge branch 'development' v0.4.3
Bradley Ayers [Sat, 14 May 2011 11:05:53 +0000 (21:05 +1000)]
Merge branch 'development'

12 years ago* Fixed bug with LinkColumn when using unicode. Thanks kwevej
Bradley Ayers [Sat, 14 May 2011 11:05:22 +0000 (21:05 +1000)]
* Fixed bug with LinkColumn when using unicode. Thanks kwevej
* Bumped version to 0.4.3

12 years agoMerge branch 'development' v0.4.2
Bradley Ayers [Wed, 11 May 2011 21:22:14 +0000 (07:22 +1000)]
Merge branch 'development'

12 years agoFixed rogue tests/ and example/ packages being installed in site-packages
Bradley Ayers [Wed, 11 May 2011 21:19:20 +0000 (07:19 +1000)]
Fixed rogue tests/ and example/ packages being installed in site-packages

12 years agoMerge branch 'development' v0.4.1
Bradley Ayers [Wed, 11 May 2011 21:05:46 +0000 (07:05 +1000)]
Merge branch 'development'

12 years ago* Added example project to demonstrate usage.
Bradley Ayers [Wed, 11 May 2011 21:02:26 +0000 (07:02 +1000)]
* Added example project to demonstrate usage.
* {% render_table %} now raises an exception if a RequestContext 'request' isn't in the template context.
* Added better documentation in the "Slow Start Guide" about pagination and ordering
* Fixed some styling issues with the paleblue theme
* Added instructions on how to build the docs when using a virtualenv
* bumped version to v0.4.1

12 years agoFixed a couple of typos in the documentation. Thanks Martin St.
Bradley Ayers [Mon, 9 May 2011 09:57:05 +0000 (19:57 +1000)]
Fixed a couple of typos in the documentation. Thanks Martin St.

13 years agoMerge branch 'development' v0.4.0
Bradley Ayers [Wed, 20 Apr 2011 11:18:32 +0000 (21:18 +1000)]
Merge branch 'development'

13 years agobumped version out of beta
Bradley Ayers [Wed, 20 Apr 2011 11:18:21 +0000 (21:18 +1000)]
bumped version out of beta

13 years agoMerge branch 'development' v0.4.0.beta6
Bradley Ayers [Fri, 15 Apr 2011 10:57:22 +0000 (20:57 +1000)]
Merge branch 'development'

13 years agobumped docs version
Bradley Ayers [Fri, 15 Apr 2011 10:57:16 +0000 (20:57 +1000)]
bumped docs version

13 years agoMerge branch 'development'
Bradley Ayers [Fri, 15 Apr 2011 10:56:34 +0000 (20:56 +1000)]
Merge branch 'development'

13 years agobumped version
Bradley Ayers [Fri, 15 Apr 2011 10:45:02 +0000 (20:45 +1000)]
bumped version

13 years agoMerge branch 'development' of https://github.com/chrisdoble/django-tables into develo...
Bradley Ayers [Fri, 15 Apr 2011 10:40:32 +0000 (20:40 +1000)]
Merge branch 'development' of https://github.com/chrisdoble/django-tables into development

13 years ago* Added ability to specify an empty_row value for tables
Bradley Ayers [Fri, 15 Apr 2011 10:22:18 +0000 (20:22 +1000)]
* Added ability to specify an empty_row value for tables

13 years agoFix minor HTML issue.
Chris Doble [Mon, 11 Apr 2011 23:52:22 +0000 (09:52 +1000)]
Fix minor HTML issue.

13 years agoRendered tables now include empty_text
Bradley Ayers [Sun, 10 Apr 2011 00:02:06 +0000 (10:02 +1000)]
Rendered tables now include empty_text

13 years agomostly done, just need to add empty_text functionality, and sortable
Bradley Ayers [Wed, 6 Apr 2011 23:08:38 +0000 (09:08 +1000)]
mostly done, just need to add empty_text functionality, and sortable

13 years agoMerge branch 'development'
Bradley Ayers [Tue, 5 Apr 2011 07:49:26 +0000 (17:49 +1000)]
Merge branch 'development'

13 years ago* render_FOO methods now only receive the arguments they accept (no more **kwargs) v0.4.0.beta4
Bradley Ayers [Tue, 5 Apr 2011 07:44:35 +0000 (17:44 +1000)]
* render_FOO methods now only receive the arguments they accept (no more **kwargs)
* The default ordering of a table is now Table.Meta.order_by, rather than to not sort at all.
* Fixed a rendering bug with Django 1.3 (related to indexing into querysets)
* Model tests now work.

13 years agoMerge branch 'development'
Bradley Ayers [Mon, 4 Apr 2011 05:15:09 +0000 (15:15 +1000)]
Merge branch 'development'

13 years ago* Added pagination v0.4.0.beta3
Bradley Ayers [Mon, 4 Apr 2011 05:12:09 +0000 (15:12 +1000)]
* Added pagination
* TemplateColumn now renders with a RequestContext if using {% render_table %}
* Column accessors no longer need to successfully resolve. If the resolve fails, the default value will be used.

13 years ago* Updated documentation v0.4.0.beta2
Bradley Ayers [Sun, 3 Apr 2011 23:09:26 +0000 (09:09 +1000)]
* Updated documentation
* Renamed Columns to BoundColumns, and Rows to BoundRows
* Added some Accessor tests

13 years ago* Fixed CheckBoxColumn.
Bradley Ayers [Fri, 1 Apr 2011 07:50:56 +0000 (17:50 +1000)]
* Fixed CheckBoxColumn.
* Fixed rendering of column headers. SafeData is now honored.
* Added LinkColumn.

13 years agoMerge branch 'development' v0.4.0.beta
Bradley Ayers [Thu, 31 Mar 2011 23:21:44 +0000 (09:21 +1000)]
Merge branch 'development'

13 years ago* Ordering now works properly.
Bradley Ayers [Thu, 31 Mar 2011 23:10:15 +0000 (09:10 +1000)]
* Ordering now works properly.
* Updated documentation with information about OrderByTuple and OrderBy.
* Bumped version to v0.4.0.beta
* Updated paleblue theme with ordering icons.

13 years agoFixed paleblue theme CSS v0.4.0.alpha4
Bradley Ayers [Fri, 25 Mar 2011 03:44:54 +0000 (13:44 +1000)]
Fixed paleblue theme CSS

Conflicts:
django_tables/static/django_tables/themes/paleblue/css/screen.css
docs/conf.py
setup.py

13 years ago* Fixed the paleblue theme CSS
Bradley Ayers [Fri, 25 Mar 2011 03:31:15 +0000 (13:31 +1000)]
* Fixed the paleblue theme CSS

13 years agoSquashed commit of the following: v0.4.0.alpha3
Bradley Ayers [Fri, 25 Mar 2011 03:19:51 +0000 (13:19 +1000)]
Squashed commit of the following:

commit c3a0de3791f178e6a653167eea315e467955f23d
Author: Bradley Ayers <bradley.ayers@enigmainteractive.com>
Date:   Fri Mar 25 12:59:32 2011 +1000

    fixed missing include in MANIFEST.in

commit 71a9ea5e40c4cbc1d5fc2537c8ab6725325a1f17
Author: Bradley Ayers <bradley.ayers@enigmainteractive.com>
Date:   Fri Mar 25 12:50:13 2011 +1000

    bumped version

commit c743e17d0405b5b362fc0676a51b69eb76dbe0d4
Author: Bradley Ayers <bradley.ayers@enigmainteractive.com>
Date:   Fri Mar 25 12:49:41 2011 +1000

    added 'attrs' field on Table.Meta, updated documentation, added a paleblue theme.

commit 127c210473ad250a8f2a27c3107952da9a62826b
Author: Bradley Ayers <bradley.ayers@enigmainteractive.com>
Date:   Thu Mar 24 13:12:57 2011 +1000

    Fixed wrong dependency name in setup.py

commit 11451794ec659b8ccd8bc24327dd45d5f096f6fe
Author: Bradley Ayers <bradley.ayers@enigmainteractive.com>
Date:   Thu Mar 24 13:07:49 2011 +1000

    * Moved tests out of the app, and integrated them with setup.py
    * Added more tests for QuerySet data sources
    * Clarified documentation
    * Renamed BoundRow.data to BoundRow.record

commit 7ccf79aabf68d92360b40b561b1948d4da2d4caa
Author: Bradley Ayers <bradley.ayers@gmail.com>
Date:   Wed Mar 23 09:15:07 2011 +1000

    * Fixed bug in conf.py, where it was trying to use the old VERSION variable in django_tables.
    * Updated the documentation to clarify the use-cases for column formatters.

commit 3a3c8fe8cd783ac08d5e06b4b3021cf611beb7e3
Author: Bradley Ayers <bradley.ayers@enigmainteractive.com>
Date:   Mon Mar 21 16:30:59 2011 +1000

    simplified setup.py

commit c0292c03e10cb9e5b8ea1c5cd3195a4de54c7068
Author: Bradley Ayers <bradley.ayers@gmail.com>
Date:   Sun Feb 27 23:45:20 2011 +1000

    using QuerySets actually works now, added a relevant test that now uses django-attest

commit b4d157013e984f5d29b1877fdecbc0482fd8fb9f
Author: Bradley Ayers <bradley.ayers@enigmainteractive.com>
Date:   Fri Feb 25 17:36:14 2011 +1000

    added a test to reveal problem with using querysets as data sources

commit ba9fa5a60ab0f511bd245674dacfaf4ee57859fc
Author: Bradley Ayers <bradley.ayers@gmail.com>
Date:   Fri Feb 25 03:03:50 2011 +1000

    removed copyright

commit c9913e928fe50221ccb1757194771b6f46d1312a
Author: Bradley Ayers <bradley.ayers@gmail.com>
Date:   Fri Feb 25 03:01:36 2011 +1000

    upped version to 0.4.0 alpha 1

commit b26c1fc04093ccf1ede246803715fd57e8db41fb
Author: Bradley Ayers <bradley.ayers@gmail.com>
Date:   Fri Feb 25 02:54:02 2011 +1000

    fixed up a lot of shitty documentation, and fixed some bugs while I was at it.

commit efe955a1a86977cf9f392ce60ad2bd5ad43f4784
Author: Bradley Ayers <bradley.ayers@enigmainteractive.com>
Date:   Wed Feb 23 17:33:22 2011 +1000

    updated docs

commit 79d701a0c910ec9a8e671e09cb56ab04f6ebcb29
Author: Bradley Ayers <bradley.ayers@enigmainteractive.com>
Date:   Tue Feb 22 19:12:27 2011 +1000

    fixed some bugs

13 years agofixed missing include in MANIFEST.in
Bradley Ayers [Fri, 25 Mar 2011 02:59:32 +0000 (12:59 +1000)]
fixed missing include in MANIFEST.in

13 years ago* Added 'attrs' property on Table 0.4.0.alpha3
Bradley Ayers [Fri, 25 Mar 2011 02:51:35 +0000 (12:51 +1000)]
* Added 'attrs' property on Table
* Added 'attrs' field in Table.Meta
* Added AttributeDict
* Updated documentation relating to the new Table.attrs property
* Added a paleblue theme.

13 years agobumped version
Bradley Ayers [Fri, 25 Mar 2011 02:50:13 +0000 (12:50 +1000)]
bumped version

13 years agoadded 'attrs' field on Table.Meta, updated documentation, added a paleblue theme.
Bradley Ayers [Fri, 25 Mar 2011 02:49:41 +0000 (12:49 +1000)]
added 'attrs' field on Table.Meta, updated documentation, added a paleblue theme.

13 years ago* Moved tests out of the app, and integrated them with setup.py v0.4.0.alpha2
Bradley Ayers [Thu, 24 Mar 2011 03:13:12 +0000 (13:13 +1000)]
* Moved tests out of the app, and integrated them with setup.py
* Added more tests for QuerySet data sources
* Clarified documentation
* Renamed BoundRow.data to BoundRow.record
* Fixed bug in conf.py, where it was trying to use the old VERSION variable in django_tables.
* Updated the documentation to clarify the use-cases for column formatters.
* Simplified setup.py
* Using QuerySets actually works now, added a relevant test that now uses django-attest

13 years agoFixed wrong dependency name in setup.py
Bradley Ayers [Thu, 24 Mar 2011 03:12:57 +0000 (13:12 +1000)]
Fixed wrong dependency name in setup.py

13 years ago* Moved tests out of the app, and integrated them with setup.py
Bradley Ayers [Thu, 24 Mar 2011 03:07:49 +0000 (13:07 +1000)]
* Moved tests out of the app, and integrated them with setup.py
* Added more tests for QuerySet data sources
* Clarified documentation
* Renamed BoundRow.data to BoundRow.record

13 years ago* Fixed bug in conf.py, where it was trying to use the old VERSION variable in django...
Bradley Ayers [Tue, 22 Mar 2011 23:15:07 +0000 (09:15 +1000)]
* Fixed bug in conf.py, where it was trying to use the old VERSION variable in django_tables.
* Updated the documentation to clarify the use-cases for column formatters.

13 years agosimplified setup.py
Bradley Ayers [Mon, 21 Mar 2011 06:30:59 +0000 (16:30 +1000)]
simplified setup.py

13 years agousing QuerySets actually works now, added a relevant test that now uses django-attest
Bradley Ayers [Sun, 27 Feb 2011 13:45:20 +0000 (23:45 +1000)]
using QuerySets actually works now, added a relevant test that now uses django-attest

13 years agoadded a test to reveal problem with using querysets as data sources
Bradley Ayers [Fri, 25 Feb 2011 07:36:14 +0000 (17:36 +1000)]
added a test to reveal problem with using querysets as data sources

13 years ago0.4.0 alpha 1 0.4.0-alpha1
Bradley Ayers [Thu, 24 Feb 2011 17:07:40 +0000 (03:07 +1000)]
0.4.0 alpha 1

13 years agoremoved copyright
Bradley Ayers [Thu, 24 Feb 2011 17:03:50 +0000 (03:03 +1000)]
removed copyright

13 years agoupped version to 0.4.0 alpha 1
Bradley Ayers [Thu, 24 Feb 2011 17:01:36 +0000 (03:01 +1000)]
upped version to 0.4.0 alpha 1

13 years agofixed up a lot of shitty documentation, and fixed some bugs while I was at it.
Bradley Ayers [Thu, 24 Feb 2011 16:54:02 +0000 (02:54 +1000)]
fixed up a lot of shitty documentation, and fixed some bugs while I was at it.

13 years agoupdated docs
Bradley Ayers [Wed, 23 Feb 2011 07:33:22 +0000 (17:33 +1000)]
updated docs

13 years agofixed some bugs
Bradley Ayers [Tue, 22 Feb 2011 09:12:27 +0000 (19:12 +1000)]
fixed some bugs

13 years agoupdated README
Bradley Ayers [Fri, 4 Feb 2011 02:40:42 +0000 (12:40 +1000)]
updated README

13 years agoupdated README.rst
Bradley Ayers [Fri, 4 Feb 2011 02:38:40 +0000 (12:38 +1000)]
updated README.rst

13 years agoAdded README, removed komodo project files
Bradley Ayers [Fri, 4 Feb 2011 02:37:48 +0000 (12:37 +1000)]
Added README, removed komodo project files

13 years agolots of major changes
Bradley Ayers [Fri, 4 Feb 2011 02:28:44 +0000 (12:28 +1000)]
lots of major changes

13 years agoSetup development version number.
Michael Elsdoerfer [Fri, 26 Nov 2010 12:16:14 +0000 (13:16 +0100)]
Setup development version number.

13 years agoNow that the files lack a BOM, some need a coding declaration. 0.2.1 0.3
Michael Elsdoerfer [Fri, 26 Nov 2010 12:15:14 +0000 (13:15 +0100)]
Now that the files lack a BOM, some need a coding declaration.

13 years agoPrepare to fix a new version.
Michael Elsdoerfer [Fri, 26 Nov 2010 12:12:26 +0000 (13:12 +0100)]
Prepare to fix a new version.

13 years agoMerge remote branch 'jweyrich/master'
Michael Elsdoerfer [Mon, 22 Nov 2010 15:01:00 +0000 (16:01 +0100)]
Merge remote branch 'jweyrich/master'

13 years agoMake sure the models.py file, which we need to be loaded by Django as an
Michael Elsdoerfer [Mon, 22 Nov 2010 12:23:35 +0000 (13:23 +0100)]
Make sure the models.py file, which we need to be loaded by Django as an
app, is not empty. Apparently this causes rpmlint to complain when
packaging for Fedora.

13 years agoConvert files to UNIX EOL and remove BOM.
Jardel Weyrich [Mon, 22 Nov 2010 07:47:46 +0000 (05:47 -0200)]
Convert files to UNIX EOL and remove BOM.
Please, add these lines to your ~/.gitconfig file:
    [core]
        autocrlf = input
Or alternatively run:
    git config --global core.autocrlf input

13 years agoFixed some problems with Harro's test.
Michael Elsdörfer [Wed, 13 Oct 2010 16:56:48 +0000 (18:56 +0200)]
Fixed some problems with Harro's test.

13 years agoAdded verbose_name to columns from a model.
Harro van der Klauw [Tue, 12 Oct 2010 09:15:56 +0000 (11:15 +0200)]
Added verbose_name to columns from a model.

13 years agoFixed a NameError. This potentially closes issue 5.
Michael Elsdoerfer [Tue, 24 Aug 2010 22:46:11 +0000 (00:46 +0200)]
Fixed a NameError. This potentially closes issue 5.

13 years agoConvert a bunch of files to use *nix line endings.
Michael Elsdoerfer [Tue, 24 Aug 2010 22:27:08 +0000 (00:27 +0200)]
Convert a bunch of files to use *nix line endings.

13 years agoIgnore build directory created by distutils.
Michael Elsdoerfer [Fri, 20 Aug 2010 22:33:04 +0000 (00:33 +0200)]
Ignore build directory created by distutils.

13 years agoMake setup.py executable.
Michael Elsdoerfer [Fri, 20 Aug 2010 22:32:37 +0000 (00:32 +0200)]
Make setup.py executable.

13 years agoAfter release, set version to 0.3 dev.
Michael Elsdoerfer [Fri, 20 Aug 2010 22:32:11 +0000 (00:32 +0200)]
After release, set version to 0.3 dev.

13 years agoPrepare a 0.2 release. 0.2
Michael Elsdoerfer [Fri, 20 Aug 2010 22:27:00 +0000 (00:27 +0200)]
Prepare a 0.2 release.

13 years agoConverted to *nix linebreaks.
Michael Elsdoerfer [Fri, 20 Aug 2010 22:25:47 +0000 (00:25 +0200)]
Converted to *nix linebreaks.

13 years agoAdded a test for Harro's columns= sorting change.
Michael Elsdoerfer [Wed, 21 Jul 2010 12:18:46 +0000 (14:18 +0200)]
Added a test for Harro's columns= sorting change.

13 years agoFor a ModelTable you can use the columns meta option to indicate the column order.
Harro van der Klauw [Wed, 21 Jul 2010 07:01:12 +0000 (09:01 +0200)]
For a ModelTable you can use the columns meta option to indicate the column order.

13 years agoDefine the version number properly inside the module, read within setup.py.
Michael Elsdoerfer [Tue, 1 Jun 2010 16:23:47 +0000 (18:23 +0200)]
Define the version number properly inside the module, read within setup.py.

13 years agoMinor formatting fix in docs.
Michael Elsdoerfer [Tue, 1 Jun 2010 16:12:38 +0000 (18:12 +0200)]
Minor formatting fix in docs.

13 years agoAdded documentation for the new "render_COLUMN" methods.
Michael Elsdoerfer [Tue, 1 Jun 2010 16:09:21 +0000 (18:09 +0200)]
Added documentation for the new "render_COLUMN" methods.

13 years agoNo longer allow the Column's 'data' argument to be callable. This was tedious to...
Michael Elsdoerfer [Tue, 1 Jun 2010 15:28:35 +0000 (17:28 +0200)]
No longer allow the Column's 'data' argument to be callable. This was tedious to use anyway, and only made the declared_name/name/data thing more confusing that it already is. Instead, it is now possible to define render_FOO methods within the table.

Also, these render methods will receive no the BoundRow as an argument, but rather the actual underlining data row. This makes much more sense, and prevents users from having to fall back to the undocument ``BoundRow.data`` attribute to avoid infinite recursion.

13 years agoThis comment wasn't really correct anymore, must have been accidentally copied from...
Michael Elsdoerfer [Fri, 28 May 2010 07:40:45 +0000 (09:40 +0200)]
This comment wasn't really correct anymore, must have been accidentally copied from the old "Table" class.

13 years agoAllow non-basestrings (e.g: ugettext_lazy) to be used in verbose_name.
Jardel Weyrich [Thu, 27 May 2010 13:31:43 +0000 (10:31 -0300)]
Allow non-basestrings (e.g: ugettext_lazy) to be used in verbose_name.

13 years agoFixed the ModelTable docstring. Thanks philotas. Closes #2.
Michael Elsdoerfer [Tue, 18 May 2010 20:32:22 +0000 (22:32 +0200)]
Fixed the ModelTable docstring. Thanks philotas. Closes #2.

14 years agobugfix: ModelTableOptions() should call TableOptions.__init__
adammck [Fri, 16 Apr 2010 03:36:15 +0000 (23:36 -0400)]
bugfix: ModelTableOptions() should call TableOptions.__init__

any options specified in the Meta of a ModelTable were not being
passed along to the constructor of TableOptions. this wasn't noticed
before, but now that order_by is an option of TableBase, it became
obvious.

14 years agoFixed 80a61's tests failures, mostly be removing the offending tests (the BaseTable...
Michael Elsdoerfer [Wed, 21 Apr 2010 07:14:04 +0000 (09:14 +0200)]
Fixed 80a61's tests failures, mostly be removing the offending tests (the BaseTable shouldn't support sorting).

14 years agoadded default 'order_by' option to tables.
adammck [Fri, 16 Apr 2010 03:17:22 +0000 (23:17 -0400)]
added default 'order_by' option to tables.

this allows tables to specify a default sort order, which includes all
of the UI of an explicitly-sorted dataset.

also, some tests. they fail for BaseTable, because sorting doesn't seem
to be implemented there. it should be, though, despite being crazy.

14 years agoAdded a __len__ method to the columns container.
Michael Elsdoerfer [Tue, 6 Apr 2010 13:18:00 +0000 (15:18 +0200)]
Added a __len__ method to the columns container.

14 years agoNoted another random idea.
Michael Elsdoerfer [Fri, 26 Mar 2010 11:55:22 +0000 (12:55 +0100)]
Noted another random idea.