Skip to content

Instantly share code, notes, and snippets.

@govind-menon
Created October 16, 2013 23:00
Show Gist options
  • Save govind-menon/7016478 to your computer and use it in GitHub Desktop.
Save govind-menon/7016478 to your computer and use it in GitHub Desktop.
Reformatted Code
from s3.s3filter import S3DateFilter, S3TextFilter
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