deploy: encode title and domain as utf-8 when receiving them from the view
This commit is contained in:
parent
2a359c335a
commit
bbce359c4f
|
@ -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'] = {
|
||||
|
|
Reference in New Issue