set_mapping to mapping= argument in Silva extensions

Bug #101775 reported by Martijn Faassen
8
Affects Status Importance Assigned to Milestone
Silva
Fix Released
Medium
Eric Casteleijn

Bug Description

Make sure that any Silva extension that uses set_mapping uses the mapping
argument to the message id instead. Also modify the import to get the new style
MessageID class if necessary.

Tags: zope2.10
Revision history for this message
Andy Altepeter (aaltepet) wrote :

I recall needing to do something with this for perhaps SilvaNews. But what I don't recall is whether the code errors out or silently doesn't work as expected. If it errors out, I suppose this issue could be marked resolved. Otherwise, the legacy method could perhaps be marked as deprecated?

I've tested all of my products, and all of the Silva products (core, SilvaNews, Groups, etc). I believe any required changes to infrae-svn housed products that I found have been made.

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

Well, SilvaNewsNetwork 2.0.1 is still using set_mapping. Will this cause problems? I don't really know how to test this...

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

created a bug in snn to get this changed for SNN 2.0.1.
SilvaDocument/transform/base still uses set_mapping

Revision history for this message
Eric Casteleijn (thisfred) wrote :

Hmm, I'll fix SilvaDocument. It *will* cause problems, but probably only when the relevant scripts are called, not on startup. It needs to be fixed in SilvaNews 2.0.x as well.

Revision history for this message
Eric Casteleijn (thisfred) wrote :

set_mapping removed from SilvaDocument in trunk and 2.0 branch

Revision history for this message
Andy Altepeter (aaltepet) wrote :
Changed in silva:
status: New → 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.