summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Michael Elsdoerfer [Tue, 1 Jun 2010 16:12:38 +0000 (18:12 +0200)]
Minor formatting fix in docs.
Michael Elsdoerfer [Tue, 1 Jun 2010 16:09:21 +0000 (18:09 +0200)]
Added documentation for the new "render_COLUMN" methods.
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.
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.
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.
Michael Elsdoerfer [Tue, 18 May 2010 20:32:22 +0000 (22:32 +0200)]
Fixed the ModelTable docstring. Thanks philotas. Closes #2.
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.
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).
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.
Michael Elsdoerfer [Tue, 6 Apr 2010 13:18:00 +0000 (15:18 +0200)]
Added a __len__ method to the columns container.
Michael Elsdoerfer [Fri, 26 Mar 2010 11:55:22 +0000 (12:55 +0100)]
Noted another random idea.
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.
Michael Elsdoerfer [Fri, 26 Mar 2010 08:45:02 +0000 (09:45 +0100)]
TODOs.
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.
Michael Elsdoerfer [Fri, 26 Mar 2010 07:36:37 +0000 (08:36 +0100)]
Updated ignores for git.
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.
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.
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.
Michael Elsdörfer [Wed, 24 Mar 2010 16:49:17 +0000 (17:49 +0100)]
Moved the global options to a separate module as well.
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.
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.
Michael Elsdörfer [Wed, 24 Mar 2010 16:20:03 +0000 (17:20 +0100)]
Added a pip requirements file for dependency installation.
Michael Elsdörfer [Wed, 24 Mar 2010 16:19:42 +0000 (17:19 +0100)]
Allow for a local TODO file.
Michael Elsdörfer [Wed, 24 Mar 2010 15:34:34 +0000 (16:34 +0100)]
Ignore WingIDE project file.
Michael Elsdörfer [Thu, 14 Jan 2010 18:27:22 +0000 (19:27 +0100)]
Merge upstream.
Michael Elsdörfer [Thu, 14 Jan 2010 18:26:00 +0000 (19:26 +0100)]
Ignore Eclipse project files.
Michael Elsdörfer [Thu, 14 Jan 2010 18:25:33 +0000 (19:25 +0100)]
Added TODO.
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.
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.
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.
Michael Elsdoerfer [Fri, 23 Oct 2009 01:12:38 +0000 (03:12 +0200)]
TODO.
Michael Elsdoerfer [Fri, 23 Oct 2009 01:11:24 +0000 (03:11 +0200)]
Added some considerations wrt adding filtering support.
Michael Elsdoerfer [Fri, 23 Oct 2009 01:09:53 +0000 (03:09 +0200)]
Fixed code sample syntax, typos.
Michael Elsdoerfer [Fri, 13 Feb 2009 04:16:07 +0000 (05:16 +0100)]
Clarified example in README. Thanks Aaron.
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.
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
Michael Elsdoerfer [Sat, 13 Dec 2008 04:27:49 +0000 (05:27 +0100)]
fixed minor oversight in README, thanks sebzur
Michael Elsdoerfer [Mon, 13 Oct 2008 23:38:40 +0000 (01:38 +0200)]
fixed typo
Michael Elsdoerfer [Mon, 6 Oct 2008 12:23:47 +0000 (14:23 +0200)]
the pagination example still wasn't quite right (thanks again, robert)
Michael Elsdoerfer [Thu, 2 Oct 2008 12:37:04 +0000 (14:37 +0200)]
fixed erroneous example in README (thanks to robert)
Michael Elsdoerfer [Sun, 21 Sep 2008 18:58:11 +0000 (20:58 +0200)]
builtin pagination now handles errors and converts them to Http404s
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
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
Michael Elsdoerfer [Sun, 27 Jul 2008 00:02:47 +0000 (02:02 +0200)]
include tests in source distribution
Michael Elsdoerfer [Sat, 26 Jul 2008 23:55:17 +0000 (01:55 +0200)]
added distutils setup script
Michael Elsdoerfer [Sat, 19 Jul 2008 01:27:13 +0000 (03:27 +0200)]
removed obsolete line from README that was never actually true
Michael Elsdoerfer [Sat, 19 Jul 2008 01:26:42 +0000 (03:26 +0200)]
minor comment spelling mistake
Michael Elsdoerfer [Sat, 19 Jul 2008 01:13:05 +0000 (03:13 +0200)]
added bsd license info
Michael Elsdoerfer [Wed, 9 Jul 2008 13:49:49 +0000 (15:49 +0200)]
minor readme updates
Michael Elsdoerfer [Sun, 29 Jun 2008 22:42:41 +0000 (00:42 +0200)]
added support for column default sort directions
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
Michael Elsdoerfer [Sun, 29 Jun 2008 10:30:46 +0000 (12:30 +0200)]
added columns.sortable() method
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
Michael Elsdoerfer [Fri, 27 Jun 2008 23:01:52 +0000 (01:01 +0200)]
Table.__getitem__ did not work at all
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
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
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
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
Michael Elsdörfer [Thu, 26 Jun 2008 17:15:56 +0000 (17:15 +0000)]
added support for pagination
Michael Elsdörfer [Tue, 24 Jun 2008 01:24:37 +0000 (01:24 +0000)]
support column "data" option, relationship spanning; cleaned up docs
Michael Elsdörfer [Fri, 20 Jun 2008 12:30:56 +0000 (12:30 +0000)]
support callables
Michael Elsdörfer [Thu, 19 Jun 2008 18:52:07 +0000 (18:52 +0000)]
fixed minor bug (caches not reset); added update() method
Michael Elsdörfer [Thu, 19 Jun 2008 18:38:00 +0000 (18:38 +0000)]
option to cause exceptions to be raised for invalid columns
Michael Elsdörfer [Thu, 19 Jun 2008 16:26:16 +0000 (16:26 +0000)]
model column auto generation can be disabled now
Michael Elsdörfer [Thu, 19 Jun 2008 16:15:37 +0000 (16:15 +0000)]
previous manual (un)commit was incomplete
Michael Elsdörfer [Thu, 19 Jun 2008 16:08:36 +0000 (16:08 +0000)]
as promised, reverted (with minor exceptions) the previous changeset
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
Michael Elsdörfer [Wed, 18 Jun 2008 13:02:43 +0000 (13:02 +0000)]
added minor test
Michael Elsdörfer [Wed, 18 Jun 2008 12:59:53 +0000 (12:59 +0000)]
better auto verbose names
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
Michael Elsdörfer [Tue, 17 Jun 2008 13:33:55 +0000 (13:33 +0000)]
forgot those files in the last commit
Michael Elsdörfer [Tue, 17 Jun 2008 13:33:36 +0000 (13:33 +0000)]
more work on modeltables, they are pretty much usable now
Michael Elsdörfer [Sun, 15 Jun 2008 17:49:55 +0000 (17:49 +0000)]
...
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
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;
Michael Elsdörfer [Sat, 14 Jun 2008 16:47:58 +0000 (16:47 +0000)]
added template tags, fixed up with tests
Michael Elsdörfer [Sun, 8 Jun 2008 22:27:18 +0000 (22:27 +0000)]
initial commit