Adding notes to service causes error on save

Bug #1216785 reported by Phill on 2013-08-26
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenLP
Won't Fix
High
Unassigned
2.0
Fix Released
High
Raoul Snyman

Bug Description

http://support.openlp.org/issues/2066

With 2.0.2 add a note to an item in the service manager.
Click File->Save: Follow traceback pops up:

--- Exception Traceback ---
Traceback (most recent call last):
   File "/usr/share/openlp/openlp/core/ui/servicemanager.py", line 546,
in saveFile
     service_content = json.dumps(service)
   File "/usr/lib/python2.7/json/__init__.py", line 233, in dumps
     return _default_encoder.encode(obj)
   File "/usr/lib/python2.7/json/encoder.py", line 203, in encode
     chunks = self.iterencode(o, _one_shot=True)
   File "/usr/lib/python2.7/json/encoder.py", line 266, in iterencode
     return _iterencode(o, 0)
   File "/usr/lib/python2.7/json/encoder.py", line 180, in default
     raise TypeError(repr(o) " is not JSON serializable")
TypeError: PyQt4.QtCore.QString(u'After the sermon.') is not JSON
serializable

Related branches

Phill (phill-ridout) on 2013-08-26
tags: added: notes service support-system
Tim Bentley (trb143) wrote :

Trunk has been converted to SIP so not an issue.

no longer affects: openlp/trunk
Changed in openlp:
status: Invalid → Fix Committed
assignee: nobody → Raoul Snyman (raoul-snyman)
milestone: none → 2.0.3
Tim Bentley (trb143) on 2013-08-27
Changed in openlp:
status: Fix Committed → Won't Fix
assignee: Raoul Snyman (raoul-snyman) → nobody
milestone: 2.0.3 → none
Phill (phill-ridout) wrote :
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers