← Back to team overview

openlp-core team mailing list archive

[Bug 694148] [NEW] importing theme produces errors

 

Public bug reported:

OpenLP 1.9.3 build bzr1163
Importing new themes produces the following error

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/thememanager.py", line 378, in onImportTheme
    self.unzipTheme(file, self.path)
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/thememanager.py", line 516, in unzipTheme
    self.generateAndSaveImage(dir, themename, theme)
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/thememanager.py", line 699, in generateAndSaveImage
    frame = self.generateImage(theme)
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/thememanager.py", line 721, in generateImage
    return self.parent.renderManager.generate_preview(themeData, forcePage)
  File "/usr/lib/pymodules/python2.6/openlp/core/lib/rendermanager.py", line 217, in generate_preview
    self.image_manager.del_image(self.theme_data.theme_name)
AttributeError: 'NoneType' object has no attribute 'theme_name'

This Theme did import before. also and this may be related in trying to
rename an installed theme, that produce an error also as follows

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/thememanager.py", line 157, in contextMenu
    self.onRenameTheme()
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/thememanager.py", line 236, in onRenameTheme
    self.cloneThemeData(oldThemeData, newThemeName)
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/thememanager.py", line 264, in cloneThemeData
    self.saveTheme(themeData, saveFrom, saveTo)
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/thememanager.py", line 665, in saveTheme
    self.generateAndSaveImage(self.path, name, theme)
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/thememanager.py", line 699, in generateAndSaveImage
    frame = self.generateImage(theme)
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/thememanager.py", line 721, in generateImage
    return self.parent.renderManager.generate_preview(themeData, forcePage)
  File "/usr/lib/pymodules/python2.6/openlp/core/lib/rendermanager.py", line 217, in generate_preview
    self.image_manager.del_image(self.theme_data.theme_name)
AttributeError: 'NoneType' object has no attribute 'theme_name'

** Affects: openlp
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/694148

Title:
  importing theme produces errors

Status in OpenLP - Worship Presentation Software:
  New

Bug description:
  OpenLP 1.9.3 build bzr1163
Importing new themes produces the following error

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/thememanager.py", line 378, in onImportTheme
    self.unzipTheme(file, self.path)
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/thememanager.py", line 516, in unzipTheme
    self.generateAndSaveImage(dir, themename, theme)
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/thememanager.py", line 699, in generateAndSaveImage
    frame = self.generateImage(theme)
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/thememanager.py", line 721, in generateImage
    return self.parent.renderManager.generate_preview(themeData, forcePage)
  File "/usr/lib/pymodules/python2.6/openlp/core/lib/rendermanager.py", line 217, in generate_preview
    self.image_manager.del_image(self.theme_data.theme_name)
AttributeError: 'NoneType' object has no attribute 'theme_name'

This Theme did import before. also and this may be related in trying to rename an installed theme, that produce an error also as follows

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/thememanager.py", line 157, in contextMenu
    self.onRenameTheme()
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/thememanager.py", line 236, in onRenameTheme
    self.cloneThemeData(oldThemeData, newThemeName)
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/thememanager.py", line 264, in cloneThemeData
    self.saveTheme(themeData, saveFrom, saveTo)
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/thememanager.py", line 665, in saveTheme
    self.generateAndSaveImage(self.path, name, theme)
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/thememanager.py", line 699, in generateAndSaveImage
    frame = self.generateImage(theme)
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/thememanager.py", line 721, in generateImage
    return self.parent.renderManager.generate_preview(themeData, forcePage)
  File "/usr/lib/pymodules/python2.6/openlp/core/lib/rendermanager.py", line 217, in generate_preview
    self.image_manager.del_image(self.theme_data.theme_name)
AttributeError: 'NoneType' object has no attribute 'theme_name'





Follow ups

References