hi guys, I'm using Pyramid and I'm trying to use Google Spreadsheet
API inside a view of mine to retrieve a list of spreadsheets.
first the user get a token from google and this works well, after
google call my view passing the token in the token parameter.
in the view i make a check for the token parameter, if it exist I make
a call to Google API, but I get a 404 error.
I think this happen because google object make a new http request
within another request. am I right?

if I'm wrong, can someone direct me to the solution?


this is the code of my view:


def statistics_view(request):
    feed = None
    token = None
    if 'token' in request.params:
        token = request.params['token']
        print "TOKEN: "+token
        gd_client = gdata.spreadsheet.service.SpreadsheetsService()
        gd_client.auth_token = token
        feed = gd_client.GetSpreadsheetsFeed()

return {'google_spreadsheets_feed': feed}

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to