def item_category():
 table = s3db.supply_item_category
 s3.filter = (table.can_be_asset == True)
 field = table.can_be_asset
 field.readable = field.writable = False
 field.default = True
 return s3_rest_controller('supply', 'item_category')

def item_category ( ) : table = s3db . supply_item_category s3 . filter = ( table . can_be_asset == True ) field = table . can_be_asset field . readable = field . writable = False field . default = True return s3_rest_controller ( 'supply' , 'item_category' )
restful crud controller .