-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
re #1727 Work in progress on initial ideas.
git-svn-id: https://projects.ninemoreminutes.com/svn/django-datatables/trunk@4 d7121a62-6ae3-45d9-917d-ff5cd7ed6f65
- Loading branch information
chris
committed
Nov 29, 2011
1 parent
6d6b8cf
commit d50b6bf
Showing
16 changed files
with
415 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
__VERSION__ = '0.1.0' | ||
from columns import * | ||
from datatable import * | ||
from datatable import * | ||
from decorators import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Decorator | ||
from decorator import decorator | ||
|
||
__all__ = ['datatable'] | ||
|
||
def datatable(datatable_class, name='datatable'): | ||
def datatable(f, request, *args, **kwargs): | ||
datatable_instance = datatable_class(request.GET, name) | ||
setattr(request, name, datatable_instance) | ||
return f(request, *args, **kwargs) | ||
return decorator(datatable) |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.