MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

Fix for myspaceapi.py (python SDK)

Last post 05-06-2009 11:46 AM by Chak. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 04-22-2009 11:34 AM

    • Joey
    • Top 100 Contributor
    • Joined on 10-18-2008
    • Posts 38

    Fix for myspaceapi.py (python SDK)

    Around line #297
    if resp.status is not 200:
    raise MySpaceError('MySpace OAuth API returned an error', resp)
    return resp.body

    needs to be changed to

    if int(resp.status) is not 200:
    raise MySpaceError('MySpace OAuth API returned an error', resp)
    return resp.body




    resp.status will come out as 200L on the long servers unless you type it as
    an int, and will not equal 200, causing an error to be thrown. I've
    confirmed typing it as above will fix the problem. The original will work
    on the development SDK, so the issue needs to be tested on live appengine
    servers.


    (I've also filed this as a ticket on the python sdk google code site - http://code.google.com/p/myspaceid-python-sdk/issues/detail?id=1 )
    Filed under: , ,
  • 05-06-2009 11:15 AM In reply to

    Re: Fix for myspaceapi.py (python SDK)

     Thanks, checking in with our python folks.

  • 05-06-2009 11:46 AM In reply to

    • Chak
    • Top 50 Contributor
    • Joined on 01-13-2008
    • Posts 70
    • MDP Team

    Re: Fix for myspaceapi.py (python SDK)

     

    Hi Joey: 

    Thank you for reporting this issue. I checked in a fix on May 04.

    Here's the diff: http://code.google.com/p/myspaceid-python-sdk/source/detail?spec=svn57&r=57

    Thanks

    Chak

     

Page 1 of 1 (3 items)