

def login(self, request):
    'Initiate a douban login'
    scope = request.POST.get('scope', url.scope)
    url = flat_url('https://www.douban.com/service/auth2/auth', scope=scope, client_id=self.consumer_key, response_type='code', redirect_uri=request.route_url(self.callback_route))
    return HTTPFound(url)

dataset/ETHPy150Open bbangert/velruse/velruse/providers/douban.py DoubanProvider.login/VarMisuse@24/37 `self`->`url`