

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

dataset/ETHPy150Open sahana/eden/controllers/vehicle.py item_category/original