← Back to team overview

openlp-core team mailing list archive

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

 

** Changed in: openlp
     Assignee: (unassigned) => Tim Bentley (trb143)

-- 
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: New

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