def send_recovery_email(self, request, user):
        code = self.generate_recovery_code(user)
        path = urljoin(request.path, code % '../r/%s/')
        url = request.build_absolute_uri(path)
        email_body = self.render(request, self.recovery_email_template, {
            'url': url,
            'code': code,
            'theuser': user,
        }).content
        send_mail(
            subject = self.recovery_email_subject,
            message = email_body,
            from_email = self.recovery_email_from or \
                settings.DEFAULT_FROM_EMAIL,
            recipient_list = [user.email]
        )

# Monkey-patch to add openid login form to the Django admin
dataset/ETHPy150Open amarandon/smeuhsocial/apps/django_openid/auth.py/AuthConsumer.send_recovery_email/swapped operands of `%`