Thanks for responding.  As I am just trying to test out the plugin, I
have created a new application specifically for this.  As such, my
files reflect only what is shown in the plugin's model file.

Here are the contents of "/var/web2py/applications/
Sample_Google_Checkout/views/default/index.html":

{{extend 'layout.html'}}
<img
src="{{=URL(request.application,'plugin_google_checkout','button',
dict(next='http://www.google.com'))}}" />


Here are the contents of the controller:

def index():
    db.plugin_google_checkout_purchase.insert(
     cart_id = 'Sample_Checkout',  # this your cart name
     item_id = 1234,  # this your id for the item
     name="Sample Item 1",
     unit_price=135.25,
     quantity=1)
    return dict()

Thanks again for your response.


On Oct 2, 4:32 pm, Massimo Di Pierro <[email protected]>
wrote:
> What's in  "/var/web2py/applications/Sample_Google_Checkout/views/
> default/index.html" ?
>
> On Oct 2, 1:26 pm, zukunftschauer <[email protected]> wrote:
>
>
>
>
>
>
>
> > I am trying to evaluate the Google Checkout Plugin, but keep running
> > in the same error.  I followed the instructions listed in the Model in
> > the plugin.  I am new to web2py, and so far love it, but it you need
> > more information than I have provided, please let me know.  I am just
> > not experienced enough to track this down, and have tried searching
> > everywhere for an answer to no avail.
>
> > I am using the latest web2py (stable) version 1.99.2.  Thanks.
>
> > Traceback (most recent call last):
> >   File "/var/web2py/gluon/restricted.py", line 194, in restricted
> >     exec ccode in environment
> >   File "/var/web2py/applications/Sample_Google_Checkout/views/default/
> > index.html", line 101, in <module>
> >   File "/var/web2py/gluon/html.py", line 221, in URL
> >     application = r.application
> > AttributeError: 'dict' object has no attribute 'application'
>
> > Error snapshot help
>
> > <type 'exceptions.AttributeError'>('dict' object has no attribute
> > 'application')

Reply via email to