django-tables2.git
14 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.

14 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.

14 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.

14 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.

14 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.

14 years agoConverted the readme file to a Sphinx documentation; some minor refactoring along...
Michael Elsdoerfer [Fri, 26 Mar 2010 11:55:07 +0000 (12:55 +0100)]
Converted the readme file to a Sphinx documentation; some minor refactoring along the lines.

14 years agoTODOs.
Michael Elsdoerfer [Fri, 26 Mar 2010 08:45:02 +0000 (09:45 +0100)]
TODOs.

14 years agoDon't insist on a specific WingIDE project file name, ignore all.
Michael Elsdoerfer [Fri, 26 Mar 2010 08:44:47 +0000 (09:44 +0100)]
Don't insist on a specific WingIDE project file name, ignore all.

14 years agoUpdated ignores for git.
Michael Elsdoerfer [Fri, 26 Mar 2010 07:36:37 +0000 (08:36 +0100)]
Updated ignores for git.

14 years agoMake it clearer that those are primarily the requirements needed to develop on django...
Michael Elsdoerfer [Fri, 26 Mar 2010 07:35:53 +0000 (08:35 +0100)]
Make it clearer that those are primarily the requirements needed to develop on django-tables.

14 years agoMore refactoring: Custom table classes now don't need to assign to the _snapshot...
Michael Elsdörfer [Wed, 24 Mar 2010 17:10:03 +0000 (18:10 +0100)]
More refactoring: Custom table classes now don't need to assign to the _snapshot argument directly, but can simply return their snapshot.

14 years agoMake it slightly easier for custom table subclasses to customize the classes used...
Michael Elsdörfer [Wed, 24 Mar 2010 16:57:14 +0000 (17:57 +0100)]
Make it slightly easier for custom table subclasses to customize the classes used for rows etc.

Removed an unused _get_rows method from ModelTable.

14 years agoMoved the global options to a separate module as well.
Michael Elsdörfer [Wed, 24 Mar 2010 16:49:17 +0000 (17:49 +0100)]
Moved the global options to a separate module as well.

14 years agoMerged the todo items from the README with the existing TODO file, which by the way...
Michael Elsdörfer [Wed, 24 Mar 2010 16:36:40 +0000 (17:36 +0100)]
Merged the todo items from the README with the existing TODO file, which by the way was in the wrong location.

14 years agoMinor refactoring. The BaseTable implementation is now split into an actual "BaseTabl...
Michael Elsdörfer [Wed, 24 Mar 2010 16:30:36 +0000 (17:30 +0100)]
Minor refactoring. The BaseTable implementation is now split into an actual "BaseTable", and a "MemoryTable". This is because in the future we'd like to offer at least one additional table implementation, an SQlTable, which is capable of doing raw queries. As a result, a better split of the base funtionality and what is provided by a base class is appropriate.

14 years agoAdded a pip requirements file for dependency installation.
Michael Elsdörfer [Wed, 24 Mar 2010 16:20:03 +0000 (17:20 +0100)]
Added a pip requirements file for dependency installation.

14 years agoAllow for a local TODO file.
Michael Elsdörfer [Wed, 24 Mar 2010 16:19:42 +0000 (17:19 +0100)]
Allow for a local TODO file.

14 years agoIgnore WingIDE project file.
Michael Elsdörfer [Wed, 24 Mar 2010 15:34:34 +0000 (16:34 +0100)]
Ignore WingIDE project file.

14 years agoMerge upstream.
Michael Elsdörfer [Thu, 14 Jan 2010 18:27:22 +0000 (19:27 +0100)]
Merge upstream.

14 years agoIgnore Eclipse project files.
Michael Elsdörfer [Thu, 14 Jan 2010 18:26:00 +0000 (19:26 +0100)]
Ignore Eclipse project files.

14 years agoAdded TODO.
Michael Elsdörfer [Thu, 14 Jan 2010 18:25:33 +0000 (19:25 +0100)]
Added TODO.

14 years agoHardly unexpected, r49 worked with the Django trunk, but caused issues with older...
Michael Elsdoerfer [Fri, 8 Jan 2010 23:17:50 +0000 (00:17 +0100)]
Hardly unexpected, r49 worked with the Django trunk, but caused issues with older versions. Now both should work.

14 years agoFixed test that broke with recent Django SVN trunk. Django now seems to strictly...
Michael Elsdoerfer [Fri, 8 Jan 2010 23:13:57 +0000 (00:13 +0100)]
Fixed test that broke with recent Django SVN trunk. Django now seems to strictly require Template.render() to be called with a Context, dict doesn't work anymore.

With this commit, all the tests pass with the latest Django trunk.

14 years agoFix for #503652 (thanks Zeth). The quasi-internal APIs to retrieve the SQL code for...
Michael Elsdoerfer [Fri, 8 Jan 2010 23:11:17 +0000 (00:11 +0100)]
Fix for #503652 (thanks Zeth). The quasi-internal APIs to retrieve the SQL code for a queryset will change in 1.2. We now support both 1.2 and previous versions.

15 years agoTODO.
Michael Elsdoerfer [Fri, 23 Oct 2009 01:12:38 +0000 (03:12 +0200)]
TODO.

15 years agoAdded some considerations wrt adding filtering support.
Michael Elsdoerfer [Fri, 23 Oct 2009 01:11:24 +0000 (03:11 +0200)]
Added some considerations wrt adding filtering support.

15 years agoFixed code sample syntax, typos.
Michael Elsdoerfer [Fri, 23 Oct 2009 01:09:53 +0000 (03:09 +0200)]
Fixed code sample syntax, typos.

15 years agoClarified example in README. Thanks Aaron.
Michael Elsdoerfer [Fri, 13 Feb 2009 04:16:07 +0000 (05:16 +0100)]
Clarified example in README. Thanks Aaron.

15 years agoFixed #282964: 'data' may point to a callable attribute while still leaving the colum...
Michael Elsdoerfer [Sun, 11 Jan 2009 13:38:18 +0000 (14:38 +0100)]
Fixed #282964: 'data' may point to a callable attribute while still leaving the column sortable.

15 years agoFixed a bug that made it hard to change the visibility of a column of a table instance
Michael Elsdoerfer [Sat, 10 Jan 2009 01:13:00 +0000 (02:13 +0100)]
Fixed a bug that made it hard to change the visibility of a column of a table instance

16 years agofixed minor oversight in README, thanks sebzur
Michael Elsdoerfer [Sat, 13 Dec 2008 04:27:49 +0000 (05:27 +0100)]
fixed minor oversight in README, thanks sebzur

16 years agofixed typo
Michael Elsdoerfer [Mon, 13 Oct 2008 23:38:40 +0000 (01:38 +0200)]
fixed typo

16 years agothe pagination example still wasn't quite right (thanks again, robert)
Michael Elsdoerfer [Mon, 6 Oct 2008 12:23:47 +0000 (14:23 +0200)]
the pagination example still wasn't quite right (thanks again, robert)

16 years agofixed erroneous example in README (thanks to robert)
Michael Elsdoerfer [Thu, 2 Oct 2008 12:37:04 +0000 (14:37 +0200)]
fixed erroneous example in README (thanks to robert)

16 years agobuiltin pagination now handles errors and converts them to Http404s
Michael Elsdoerfer [Sun, 21 Sep 2008 18:58:11 +0000 (20:58 +0200)]
builtin pagination now handles errors and converts them to Http404s

16 years agoadded some musings about the potential future filter functionality to the readme
Michael Elsdoerfer [Tue, 16 Sep 2008 18:18:36 +0000 (20:18 +0200)]
added some musings about the potential future filter functionality to the readme

16 years agoconverted test suite to use nose rather than py.test; made some minor improvements...
Michael Elsdoerfer [Tue, 16 Sep 2008 17:43:01 +0000 (19:43 +0200)]
converted test suite to use nose rather than py.test; made some minor improvements to one test in the process

16 years agoinclude tests in source distribution
Michael Elsdoerfer [Sun, 27 Jul 2008 00:02:47 +0000 (02:02 +0200)]
include tests in source distribution

16 years agoadded distutils setup script
Michael Elsdoerfer [Sat, 26 Jul 2008 23:55:17 +0000 (01:55 +0200)]
added distutils setup script

16 years agoremoved obsolete line from README that was never actually true
Michael Elsdoerfer [Sat, 19 Jul 2008 01:27:13 +0000 (03:27 +0200)]
removed obsolete line from README that was never actually true

16 years agominor comment spelling mistake
Michael Elsdoerfer [Sat, 19 Jul 2008 01:26:42 +0000 (03:26 +0200)]
minor comment spelling mistake

16 years agoadded bsd license info
Michael Elsdoerfer [Sat, 19 Jul 2008 01:13:05 +0000 (03:13 +0200)]
added bsd license info

16 years agominor readme updates
Michael Elsdoerfer [Wed, 9 Jul 2008 13:49:49 +0000 (15:49 +0200)]
minor readme updates

16 years agoadded support for column default sort directions
Michael Elsdoerfer [Sun, 29 Jun 2008 22:42:41 +0000 (00:42 +0200)]
added support for column default sort directions

16 years agostandard tables now support an inner metaclass; the new 'sortable' option allows...
Michael Elsdoerfer [Sun, 29 Jun 2008 13:13:30 +0000 (15:13 +0200)]
standard tables now support an inner metaclass; the new 'sortable' option allows setting a table-wide default

16 years agoadded columns.sortable() method
Michael Elsdoerfer [Sun, 29 Jun 2008 10:30:46 +0000 (12:30 +0200)]
added columns.sortable() method

16 years agoadded helpful functionality for working with order_by, rendering order_by functionali...
Michael Elsdoerfer [Sun, 29 Jun 2008 09:50:09 +0000 (11:50 +0200)]
added helpful functionality for working with order_by, rendering order_by functionality in templates

16 years agoTable.__getitem__ did not work at all
Michael Elsdoerfer [Fri, 27 Jun 2008 23:01:52 +0000 (01:01 +0200)]
Table.__getitem__ did not work at all

16 years agoadding to a previous fix, make sure order_by is always a fully featured OrderByTuple
Michael Elsdoerfer [Fri, 27 Jun 2008 20:33:11 +0000 (22:33 +0200)]
adding to a previous fix, make sure order_by is always a fully featured OrderByTuple

16 years agofixed bug in set_url_param when used with order_by values or similar structures
Michael Elsdoerfer [Fri, 27 Jun 2008 00:17:17 +0000 (02:17 +0200)]
fixed bug in set_url_param when used with order_by values or similar structures

16 years agoorder_by was not normalized when passed to __init__, and generally failed with None...
Michael Elsdoerfer [Thu, 26 Jun 2008 22:32:12 +0000 (00:32 +0200)]
order_by was not normalized when passed to __init__, and generally failed with None values

16 years agofixed bug when accessing rows by index; added the missing test that caused this to...
Michael Elsdoerfer [Thu, 26 Jun 2008 21:12:12 +0000 (23:12 +0200)]
fixed bug when accessing rows by index; added the missing test that caused this to go unnoticed; added some type checking to make certain errors more easier to find

16 years agoadded support for pagination
Michael Elsdörfer [Thu, 26 Jun 2008 17:15:56 +0000 (17:15 +0000)]
added support for pagination

16 years agosupport column "data" option, relationship spanning; cleaned up docs
Michael Elsdörfer [Tue, 24 Jun 2008 01:24:37 +0000 (01:24 +0000)]
support column "data" option, relationship spanning; cleaned up docs

16 years agosupport callables
Michael Elsdörfer [Fri, 20 Jun 2008 12:30:56 +0000 (12:30 +0000)]
support callables

16 years agofixed minor bug (caches not reset); added update() method
Michael Elsdörfer [Thu, 19 Jun 2008 18:52:07 +0000 (18:52 +0000)]
fixed minor bug (caches not reset); added update() method

16 years agooption to cause exceptions to be raised for invalid columns
Michael Elsdörfer [Thu, 19 Jun 2008 18:38:00 +0000 (18:38 +0000)]
option to cause exceptions to be raised for invalid columns

16 years agomodel column auto generation can be disabled now
Michael Elsdörfer [Thu, 19 Jun 2008 16:26:16 +0000 (16:26 +0000)]
model column auto generation can be disabled now

16 years agoprevious manual (un)commit was incomplete
Michael Elsdörfer [Thu, 19 Jun 2008 16:15:37 +0000 (16:15 +0000)]
previous manual (un)commit was incomplete

16 years agoas promised, reverted (with minor exceptions) the previous changeset
Michael Elsdörfer [Thu, 19 Jun 2008 16:08:36 +0000 (16:08 +0000)]
as promised, reverted (with minor exceptions) the previous changeset

16 years agowe've just written support for a choices=True setting, when we noticed that we don...
Michael Elsdörfer [Thu, 19 Jun 2008 16:06:01 +0000 (16:06 +0000)]
we've just written support for a choices=True setting, when we noticed that we don't actually need it. instead of using special column property to enable row.column.id and row.column.value separation, the user is free to implement this behavior himself by simply making the value a dict.
in fact, when using model forms, this new behavior will be in the way, since when used with foreignkeys, we would have to map r.column.id to fk.id and r.column.value to fk, so that r.column.value.id == r.column.id; all that is completely unnecessary.

we're commiting this anyway to log it, but will revert right afterwards

16 years agoadded minor test
Michael Elsdörfer [Wed, 18 Jun 2008 13:02:43 +0000 (13:02 +0000)]
added minor test

16 years agobetter auto verbose names
Michael Elsdörfer [Wed, 18 Jun 2008 12:59:53 +0000 (12:59 +0000)]
better auto verbose names

16 years agostatic tables were implemented incorrectly, were using column aliases to read from...
Michael Elsdörfer [Wed, 18 Jun 2008 12:43:57 +0000 (12:43 +0000)]
static tables were implemented incorrectly, were using column aliases to read from source

16 years agoforgot those files in the last commit
Michael Elsdörfer [Tue, 17 Jun 2008 13:33:55 +0000 (13:33 +0000)]
forgot those files in the last commit

16 years agomore work on modeltables, they are pretty much usable now
Michael Elsdörfer [Tue, 17 Jun 2008 13:33:36 +0000 (13:33 +0000)]
more work on modeltables, they are pretty much usable now

16 years ago...
Michael Elsdörfer [Sun, 15 Jun 2008 17:49:55 +0000 (17:49 +0000)]
...

16 years agowe're now in a state were so far existing features are complete; but more to come
Michael Elsdörfer [Sun, 15 Jun 2008 17:31:17 +0000 (17:31 +0000)]
we're now in a state were so far existing features are complete; but more to come

16 years agousing py.test for testing; added some tests; minor model bugfixes;
Michael Elsdörfer [Sat, 14 Jun 2008 17:34:59 +0000 (17:34 +0000)]
using py.test for testing; added some tests; minor model bugfixes;

16 years agoadded template tags, fixed up with tests
Michael Elsdörfer [Sat, 14 Jun 2008 16:47:58 +0000 (16:47 +0000)]
added template tags, fixed up with tests

16 years agoinitial commit
Michael Elsdörfer [Sun, 8 Jun 2008 22:27:18 +0000 (22:27 +0000)]
initial commit