AttributeError instead of Paypal checkout screen

View: New views
5 Messages — Rating Filter:   Alert me  

AttributeError instead of Paypal checkout screen

by danimal-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi folks,
  I've just rebuilt my Plone with getpaid's override.zcml for Paypal.
When I click the checkout button I get this error, rather than the Paypal checkout screen.

Any ideas?

It happens on this line:
    order_contents = u'\n'.join([u' '.join((str(cart_item.quantity),
                                  cart_item.name,
                                  u"@%0.2f" % (cart_item.cost,),
                                  'total: US$%0.2f' % (cart_item.cost*cart_item.quantity,),
                                )) for cart_item in order.shopping_cart.values()])

so order.shopping_cart appears to be None - which ain't good, 'cos I'm sure I added items to it....

Thanks for looking!
Daniel

--~--~---------~--~----~------------~-------~--~----~
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@...
To unsubscribe from this group, send email to getpaid-dev+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/getpaid-dev?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: AttributeError instead of Paypal checkout screen

by danimal-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


whoops.....   see http://pastie.org/585957 for the trace

On Aug 17, 4:27 pm, Daniel Jowett <daniel.jow...@...> wrote:

> Hi folks,
>   I've just rebuilt my Plone with getpaid's override.zcml for Paypal.
> When I click the checkout button I get this error, rather than the Paypal
> checkout screen.
>
> Any ideas?
>
> It happens on this line:
>     order_contents = u'\n'.join([u' '.join((str(cart_item.quantity),
>                                   cart_item.name,
>                                   u"@%0.2f" % (cart_item.cost,),
>                                   'total: US$%0.2f' %
> (cart_item.cost*cart_item.quantity,),
>                                 )) for cart_item in order.shopping_cart
> .values()])
>
> so order.shopping_cart appears to be None - which ain't good, 'cos I'm sure
> I added items to it....
>
> Thanks for looking!
> Daniel
--~--~---------~--~----~------------~-------~--~----~
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@...
To unsubscribe from this group, send email to getpaid-dev+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/getpaid-dev?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: AttributeError instead of Paypal checkout screen

by Rob LaRubbio-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I made a fix for this issue last week and checked it in, but I don't have permissions to bundle it.  The problem was that the event was getting triggered before the shopping cart was attached to the order.  If someone can bundle a new getpaid.paypal, or give me permission to do it we can push this out.

-Rob

On Mon, Aug 17, 2009 at 8:27 AM, Daniel Jowett <daniel.jowett@...> wrote:
Hi folks,
  I've just rebuilt my Plone with getpaid's override.zcml for Paypal.
When I click the checkout button I get this error, rather than the Paypal checkout screen.

Any ideas?

It happens on this line:
    order_contents = u'\n'.join([u' '.join((str(cart_item.quantity),
                                  cart_item.name,
                                  u"@%0.2f" % (cart_item.cost,),
                                  'total: US$%0.2f' % (cart_item.cost*cart_item.quantity,),
                                )) for cart_item in order.shopping_cart.values()])

so order.shopping_cart appears to be None - which ain't good, 'cos I'm sure I added items to it....

Thanks for looking!
Daniel




--~--~---------~--~----~------------~-------~--~----~
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@...
To unsubscribe from this group, send email to getpaid-dev+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/getpaid-dev?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: AttributeError instead of Paypal checkout screen

by danimal-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Thanks Rob,
  I feel slightly more sane now. :-)

On Aug 17, 5:35 pm, Rob LaRubbio <larub...@...> wrote:

> I made a fix for this issue last week and checked it in, but I don't have
> permissions to bundle it.  The problem was that the event was getting
> triggered before the shopping cart was attached to the order.  If someone
> can bundle a new getpaid.paypal, or give me permission to do it we can push
> this out.
>
> -Rob
>
> On Mon, Aug 17, 2009 at 8:27 AM, Daniel Jowett <daniel.jow...@...>wrote:
>
> > Hi folks,
> >   I've just rebuilt my Plone with getpaid's override.zcml for Paypal.
> > When I click the checkout button I get this error, rather than the Paypal
> > checkout screen.
>
> > Any ideas?
>
> > It happens on this line:
> >     order_contents = u'\n'.join([u' '.join((str(cart_item.quantity),
> >                                   cart_item.name,
> >                                   u"@%0.2f" % (cart_item.cost,),
> >                                   'total: US$%0.2f' %
> > (cart_item.cost*cart_item.quantity,),
> >                                 )) for cart_item in order.shopping_cart
> > .values()])
>
> > so order.shopping_cart appears to be None - which ain't good, 'cos I'm sure
> > I added items to it....
>
> > Thanks for looking!
> > Daniel
--~--~---------~--~----~------------~-------~--~----~
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@...
To unsubscribe from this group, send email to getpaid-dev+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/getpaid-dev?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: AttributeError instead of Paypal checkout screen

by Lucie Lejard-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I added you as an owner of the package in pypi.

Lucie
--
six feet up, inc.  |  "Nowhere to go but open source"
Direct Line +1 (317) 861-5948 x605
http://www.sixfeetup.com  |  Zope/Plone Custom Development + Hosting



On Mon, Aug 17, 2009 at 12:35 PM, Rob LaRubbio<larubbio@...> wrote:

> I made a fix for this issue last week and checked it in, but I don't have
> permissions to bundle it.  The problem was that the event was getting
> triggered before the shopping cart was attached to the order.  If someone
> can bundle a new getpaid.paypal, or give me permission to do it we can push
> this out.
>
> -Rob
>
> On Mon, Aug 17, 2009 at 8:27 AM, Daniel Jowett <daniel.jowett@...>
> wrote:
>>
>> Hi folks,
>>   I've just rebuilt my Plone with getpaid's override.zcml for Paypal.
>> When I click the checkout button I get this error, rather than the Paypal
>> checkout screen.
>>
>> Any ideas?
>>
>> It happens on this line:
>>     order_contents = u'\n'.join([u' '.join((str(cart_item.quantity),
>>                                   cart_item.name,
>>                                   u"@%0.2f" % (cart_item.cost,),
>>                                   'total: US$%0.2f' %
>> (cart_item.cost*cart_item.quantity,),
>>                                 )) for cart_item in
>> order.shopping_cart.values()])
>>
>> so order.shopping_cart appears to be None - which ain't good, 'cos I'm
>> sure I added items to it....
>>
>> Thanks for looking!
>> Daniel
>>
>>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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@...
To unsubscribe from this group, send email to getpaid-dev+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/getpaid-dev?hl=en
-~----------~----~----~----~------~----~------~--~---