def fruit_view(request): if request.method == 'POST': return Fruit.create_fruit(request) else: return Fruit.fruit(Fruit.name.desc(), request.matchdict['id'])
def fruits_view(request): return Fruit.fruits_bunch(Fruit.name.desc())