Hi,
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 (I'm learning...) 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
How the exceptions are handled in a zope.form ? Where I can learn more
(at slow speed...)
(apologies for my English and my naivete)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"getpaid-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/getpaid-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to