def create_for_user(self, user):
<EOL>if type(user) is unicode:<EOL><INDENT>from .profile import Profile as User<EOL>user = User.objects.get(email=user)<EOL><DEDENT>temp_key = token_generator.make_token(user)<EOL>password_reset = PasswordReset(user=user, temp_key=temp_key)<EOL>password_reset.save()<EOL>subject = _("<STR_LIT>")<EOL>message = render_to_string("<STR_LIT>", {<EOL>"<STR_LIT:user>": user,<EOL>"<STR_LIT>": int_to_base36(user.id),<EOL>"<STR_LIT>": temp_key,<EOL>"<STR_LIT>": settings.SITE_URL,<EOL>"<STR_LIT>": settings.SITE_NAME<EOL>})<EOL>send_mail(subject, message, settings.DEFAULT_FROM_EMAIL, [user.email])<EOL>return password_reset<EOL>
create password reset for specified user