deploy: encode title and domain as utf-8 when receiving them from the view

This commit is contained in:
Benjamin Dauvergne 2013-10-29 11:40:08 +01:00
parent 2a359c335a
commit bbce359c4f
1 changed files with 3 additions and 3 deletions

View File

@ -26,8 +26,8 @@ class DeployInstance(object):
collectivity_install_dir = None
def __init__(self, domain, title, site_options_cfg):
self.domain = domain
self.title = title
self.domain = domain.encode('utf-8')
self.title = title.encode('utf-8')
self.site_options_cfg = site_options_cfg
def make(self):
@ -173,7 +173,7 @@ class DeployInstance(object):
idp_metadata = ET.parse(file(os.path.join(self.skel_dir, 'idp-metadata.xml')))
entity_id = idp_metadata.getroot().attrib['entityID']
idp_key = get_provider_key(entity_id)
title = self.title.encode('utf-8')
title = self.title
wcs_cfg['identification'] = {'methods': ['idp']}
wcs_cfg['idp'] = {