def theme_data():
 field = s3db.gis_layer_theme_id()
 field.requires = IS_EMPTY_OR(field.requires)
 output = s3_rest_controller(csv_extra_fields=[dict(label='Layer', field=field)])
 return output

def theme_data ( ) : field = s3db . gis_layer_theme_id ( ) field . requires = IS_EMPTY_OR ( field . requires ) output = s3_rest_controller ( csv_extra_fields = [ dict ( label = 'Layer' , field = field ) ] ) return output
restful crud controller .