Created
October 16, 2013 23:02
-
-
Save govind-menon/7016494 to your computer and use it in GitHub Desktop.
Reformatted Code
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
filter_widgets = [ | |
S3DateFilter("created_on", | |
label=T('Tweeted On'), | |
hide_time=True, | |
_class="date-filter-class", | |
comment="Filter Tweets by the date they were tweeted on"), | |
S3TextFilter("from_address", | |
label=T('Tweeted By'), | |
_class="tweeter-filter-class", | |
comment="Filter Tweets by who tweeted them") | |
] | |
s3db.configure(tablename, | |
filter_widgets=filter_widgets, | |
listadd=False) | |
return s3_rest_controller(hide_filter=False) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment