

def GenerateUserAuthorizationURL(self, level=None):
    full = (level == 'full')
    if full:
        sess = session.DropboxSession(DROPBOX_FULL_APP_KEY, DROPBOX_FULL_APP_SECRET, 'dropbox')
    else:
        sess = session.DropboxSession(DROPBOX_APP_KEY, DROPBOX_APP_SECRET, 'app_folder')
    reqToken = sess.obtain_request_token()
    redis.setex(('dropbox:oauth:%s' % reqToken.key), pickle.dumps(level), timedelta(hours=24))
    return sess.build_authorize_url(reqToken, oauth_callback=(WEB_ROOT + reverse('oauth_return', kwargs={
        'service': 'dropbox',
        'level': ('full' if full else 'normal'),
    })))

dataset/ETHPy150Open cpfair/tapiriik/tapiriik/services/Dropbox/dropbox.py DropboxService.GenerateUserAuthorizationURL/VarMisuse@83/134 `reqToken`->`level`