what does the order_manager.isValid method do? Does it expect a string with the order id number?
-- 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 Tue, May 26, 2009 at 5:31 AM, Hannes Calitz <hann...@gmail.com> wrote: > On inspection while debugging I found that it is returning the order id as a > string (eg. 373715280). > > 2009/5/25 Rob LaRubbio <larub...@gmail.com> >> >> Do you know what self.getQuerysring is returning? My guess is that it is >> not returning just the order id. Maybe something like &order-id=<your order >> id> or a dict? >> >> -Rob >> >> On Sun, May 24, 2009 at 10:05 PM, hannesc <hann...@gmail.com> wrote: >>> >>> Thanks >>> >>> However, when I send the order id to the order manager, it returns >>> 'None'. Here is the code I'm using: >>> >>> order_manager = component.getUtility(interfaces.IOrderManager) >>> orderid = self.getQuerystring() >>> if order_manager.isValid(orderid): >>> order = order_manager.get(orderid) >>> else: >>> order = "invalid" >>> >>> Now, as you can see from the above code, I am checking whether the >>> orderid I receive is valid. When the id is validated, it is supposed >>> to set order to the order object. However, order_manager.get(orderid) >>> returns 'None'. >>> >>> Any idea why this could be happening? >>> >>> H >>> >>> On May 20, 8:36 am, Tim Knapp <duf...@kokorice.org> wrote: >>> > Hi Hannes, >>> > >>> > order_manager = getUtility(IOrderManager) >>> > order = order_manager.get(yourOrderID) >>> > >>> > Thanks, >>> > Tim >>> >> >> >> > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "getpaid-dev" group. To post to this group, send email to getpaid-dev@googlegroups.com To unsubscribe from this group, send email to getpaid-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/getpaid-dev?hl=en -~----------~----~----~----~------~----~------~--~---