|
|
I've noticed that to put a negative number in the form of footer of
the portlet "Product Details" doesn't give an error and allow to have
a cart with a negative price.
I first supposed that it could be avoided in
constraining "quantity" to be a non negative number in the ILineItem
interface
but on the other hand when you put a string that can't be converted to
a number, an error is thrown -- ConversionErrror
at
# check quantity from request
qty = int(self.request.get('quantity', 1))
of browser/cart.py ---
error that is not handled despite the fact that quantity is declared
in the interface as a number
|