silva code source debugging

Bug #101404 reported by Marc Petitmermet
8
Affects Status Importance Assigned to Milestone
Silva
Fix Released
Low
Martijn Faassen

Bug Description

when developping silva code sources one needs more debugging info. currenty, i
have to disable the try/expect clauses in
SilvaDocument/widgets/element/doc_elements/source/rendered_source.py to get more
info. after all,

<PythonScript at /silva/ssb/insert_form/control_center>
Line 58

is so much more helpful than

[external source element is broken]
error message: coercing to Unicode: need string or buffer, instance found

maybe you could enable enhanced debugging when zope is running in debugging mode
anyway.

Tags: silva-future
Revision history for this message
Andy Altepeter (aaltepet) wrote :

Attached are two patches required to get this working. One line of code needs
to be added to
SilvaDocument/widgets/element/doc_elements/source/rendered_source.py, which
triggers logging the error to the zope error log. The patch for
SilvaExternalSources adds a log_traceback function to the ExternalSource class.

Revision history for this message
Andy Altepeter (aaltepet) wrote :

Note: this is for SilvaDocument 1.5, SilvaExternalSources svn trunk (rev: 18955).

Revision history for this message
Andy Altepeter (aaltepet) wrote :

This has been committed to the SilvaExternalSources trunk.

Changed in silva:
status: Confirmed → Fix Committed
Changed in silva:
milestone: none → 2.0.5
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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