def action_remove(self, resource, context, form): cart = ProductCart(context) cart.remove_a_product(form['id'])