← Back to team overview

openlp-core team mailing list archive

[Bug 667871] Re: Theme importer does not accept xml files

 

The zip file is a package containing XML and the background image.

V1.0 exports themes in this way and this is a rebuild of that version.

What happens if the XML requires a background image?

This is an import function of a v1 or v2 export not a hack from the file
system.


** Changed in: openlp
       Status: New => Won't Fix

-- 
Theme importer does not accept xml files
https://bugs.launchpad.net/bugs/667871
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.

Status in OpenLP - Worship Presentation Software: Won't Fix

Bug description:
Hello

While investigating Bug #667865 I attempted to import a theme directly (without exporting it before). This attempt to import a xml file product a traceback. I think the theme importer should be able to deal with both xml and the exported theme. (The exported theme does only consists of the xml file.)

Traceback (most recent call last):
  File "/home/andreas/Projekte/openlp/trunk/openlp/core/ui/thememanager.py", line 452, in onImportTheme
    self.unzipTheme(file, self.path)
  File "/home/andreas/Projekte/openlp/trunk/openlp/core/ui/thememanager.py", line 540, in unzipTheme
    zip = zipfile.ZipFile(filename)
  File "/usr/lib/python2.6/zipfile.py", line 696, in __init__
    self._GetContents()
  File "/usr/lib/python2.6/zipfile.py", line 716, in _GetContents
    self._RealGetContents()
  File "/usr/lib/python2.6/zipfile.py", line 728, in _RealGetContents
    raise BadZipfile, "File is not a zip file"
BadZipfile: File is not a zip file





References