mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-16 13:08:03 +00:00
Also export password - not sure if this will always work...
This commit is contained in:
@@ -51,10 +51,11 @@ def xml_footer():
|
|||||||
return '</user>\n'
|
return '</user>\n'
|
||||||
|
|
||||||
|
|
||||||
def xml_account(username):
|
def xml_account(username, password):
|
||||||
escaped_username = saxutils.quoteattr(username)
|
escaped_username = saxutils.quoteattr(username)
|
||||||
escaped_site_url = saxutils.quoteattr(settings.SITE_URL)
|
escaped_site_url = saxutils.quoteattr(settings.SITE_URL)
|
||||||
return ' <account username=%s site=%s/>\n' % (escaped_username, escaped_site_url)
|
escaped_password = saxutils.quoteattr(password)
|
||||||
|
return ' <account username=%s password=%s site=%s/>\n' % (escaped_username, escaped_password, escaped_site_url)
|
||||||
|
|
||||||
def xml_email(emails):
|
def xml_email(emails):
|
||||||
returnstring = " <emails>\n"
|
returnstring = " <emails>\n"
|
||||||
@@ -124,7 +125,7 @@ def main(argv=None):
|
|||||||
|
|
||||||
destination = gzip.open(dest_filename, 'w')
|
destination = gzip.open(dest_filename, 'w')
|
||||||
destination.write(xml_header())
|
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_email(user.confirmed_emails.all()))
|
||||||
destination.write(xml_openid(user.confirmed_openids.all()))
|
destination.write(xml_openid(user.confirmed_openids.all()))
|
||||||
destination.write(xml_photos(photos))
|
destination.write(xml_photos(photos))
|
||||||
|
|||||||
Reference in New Issue
Block a user