def do_pick(self, request):
        # User MUST be logged in with an OpenID and it MUST be associated
        # with the selected account. The error messages in here are a bit 
        # weird, unfortunately.
        if not request.openid:
            return self.show_error(request, 'You should be logged in here')
        users = self.lookup_openid(request, request.openid.openid)
        try:
            user_id = [
                v.split('-')[1] for v in request.POST if v.startswith('user-')
            ][0]
            user = [u for u in users if str(u.id) == user_id][0]
        except __HOLE__, e:
            return self.show_error(request, "You didn't pick a valid user")
        # OK, log them in
        self.log_in_user(request, user)
        return self.on_login_complete(request, user, request.openid.openid)
dataset/ETHPy150Open amarandon/smeuhsocial/apps/django_openid/auth.py/AuthConsumer.do_pick