diff --git a/exportaccounts.py b/exportaccounts.py index 82e36e9..b921b99 100755 --- a/exportaccounts.py +++ b/exportaccounts.py @@ -51,10 +51,11 @@ def xml_footer(): return '\n' -def xml_account(username): +def xml_account(username, password): escaped_username = saxutils.quoteattr(username) escaped_site_url = saxutils.quoteattr(settings.SITE_URL) - return ' \n' % (escaped_username, escaped_site_url) + escaped_password = saxutils.quoteattr(password) + return ' \n' % (escaped_username, escaped_password, escaped_site_url) def xml_email(emails): returnstring = " \n" @@ -124,7 +125,7 @@ def main(argv=None): destination = gzip.open(dest_filename, 'w') destination.write(xml_header()) - destination.write(xml_account(username)) + destination.write(xml_account(username, user.password)) destination.write(xml_email(user.confirmed_emails.all())) destination.write(xml_openid(user.confirmed_openids.all())) destination.write(xml_photos(photos))