def style():
 field = s3db.gis_style.layer_id
 field.readable = field.writable = True
 field.label = T('Layer')
 represent = field.represent = s3base.S3Represent(lookup='gis_layer_entity')
 field.requires = IS_ONE_OF(db, 'gis_layer_entity.layer_id', represent)
 return s3_rest_controller()

def style ( ) : field = s3db . gis_style . layer_id field . readable = field . writable = True field . label = T ( 'Layer' ) represent = field . represent = s3base . S3Represent ( lookup = 'gis_layer_entity' ) field . requires = IS_ONE_OF ( db , 'gis_layer_entity.layer_id' , represent ) return s3_rest_controller ( )
restful crud controller .