metadata filename is unicode

This commit is contained in:
Serghei Mihai 2015-03-25 15:45:44 +01:00
parent 6a622bf46a
commit 896114e1e1
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ class Command(BaseCommand):
idp = entity_descriptor.find(IDP_SSO_DESCRIPTOR_TN)
entity_id = entity_descriptor.get(ENTITY_ID)
entities = etree.tostring(entity_descriptor)
metadata_dest_filename = os.path.join(idp_dir, '%s.xml' % slugify(name))
metadata_dest_filename = os.path.join(idp_dir, '%s.xml' % slugify(unicode(name)))
with open(metadata_dest_filename, 'w') as metadata:
metadata.write(entities)