def s3_set_default_filter(selector, value, tablename=None):
 s3 = current.response.s3
 filter_defaults = s3
 for level in ('filter_defaults', tablename):
  if (level not in filter_defaults):
   filter_defaults[level] = {}
  filter_defaults = filter_defaults[level]
 filter_defaults[selector] = value

def s3_set_default_filter ( selector , value , tablename = None ) : s3 = current . response . s3 filter_defaults = s3 for level in ( 'filter_defaults' , tablename ) : if ( level not in filter_defaults ) : filter_defaults [ level ] = { } filter_defaults = filter_defaults [ level ] filter_defaults [ selector ] = value
set a default filter for selector .