Adding notes to service causes error on save

Bug #1216785 reported by Phill
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)
tags: added: notes service support-system
Revision history for this message
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)
Changed in openlp:
status: Fix Committed → Won't Fix
assignee: Raoul Snyman (raoul-snyman) → nobody
milestone: 2.0.3 → none
Revision history for this message
Phill (phill-ridout) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.