playpauseandstop/Flask-Dropbox — pull request #2 by lost-theory (2012-07-11 07:28:19+00:00)
Title: Fix isinstance check for newer dropbox API's OAuthToken class

It seems newer versions of the dropbox SDK do not use oauth.oauth.OAuthToken, instead, they use dropbox.session.OAuthToken, which causes this check to fail:

```python
return DROPBOX_ACCESS_TOKEN_KEY in flask_session and \
isinstance(flask_session[DROPBOX_ACCESS_TOKEN_KEY], OAuthToken)
```

Even when the user is logged in.

This commit allows either OAuthToken class to be treated as valid.