I reported an issue for that: http://code.google.com/p/getpaid/issues/detail?id=255
I'll look into it when I get a chance Lucie -- S i x F e e t U p , I n c . | http://www.sixfeetup.com Phone: +1 (317) 861-5948 x605 ANNOUNCING the first Plone Immersive Training Experience | Sept. 10-11-12, 2009 http://www.sixfeetup.com/immerse On Sun, Apr 12, 2009 at 6:01 PM, danielle davout <[email protected]> wrote: > > 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 -~----------~----~----~----~------~----~------~--~---
