fixed service save

This commit is contained in:
Andreas Preikschat 2013-07-12 21:26:46 +02:00
parent 419b6764c3
commit 53b0825a18
2 changed files with 2 additions and 2 deletions

View File

@ -594,7 +594,7 @@ class ServiceManager(QtGui.QWidget, ServiceManagerDialog):
zip_file = zipfile.ZipFile(temp_file_name, 'w', zipfile.ZIP_STORED,
True)
# First we add service contents.
zip_file.writestr(service_file_name.encode(u'utf-8'), service_content)
zip_file.writestr(service_file_name, service_content)
except IOError:
log.exception(u'Failed to save service to disk: %s', temp_file_name)
self.main_window.error_message(translate(u'OpenLP.ServiceManager', u'Error Saving File'),

View File

@ -340,7 +340,7 @@ class OpenLyrics(object):
# Do not add the break attribute to the last lines element.
if index < len(optional_verses) - 1:
lines_element.set(u'break', u'optional')
return self._extract_xml(song_xml)
return self._extract_xml(song_xml).decode()
def _get_missing_tags(self, text):
"""