buyable product is a transient adapter not attached to the persistent chain, which getToolByName will utilize for lookup of session infrastructure.. try context.context instead
-kapil On Mon, Sep 22, 2008 at 7:04 PM, Horacio Duran <[EMAIL PROTECTED]>wrote: > > Hi I believe that I just found a bug, but I am not sure it is a bug in > my site or in getpaid, I am using a 0.6.1 from the branch version and > when I try to fill the cart with an old order I get an AttributeError > thrown by getToolByName in PloneGetPaid.sessions when trying to do > session_manager = getToolByName(context, 'session_data_manager') at > this particular time context is a buyable product, I also tried > setting it to the portal and nothing, I finally got it working with > session_manager = getToolByName(context.REQUEST.SESSION, > 'session_data_manager') is this a bug from getpaid or from my instance > only? can anyone confirm it?. > Thank you. > -- > Perrito > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
