[CMF-checkins] CVS: CMF/CMFCore - UndoTool.py:1.7

Florent Guillaume fg@nuxeo.com
Sun, 21 Jul 2002 09:48:37 -0400


Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv13647

Modified Files:
	UndoTool.py 
Log Message:
Made undo work again by removing any LF in transaction ids.


=== CMF/CMFCore/UndoTool.py 1.6 => 1.7 ===
             first_transaction=first_transaction,
             last_transaction=last_transaction,
             PrincipiaUndoBatchSize=PrincipiaUndoBatchSize)
+        for t in transactions:
+            # Ensure transaction ids don't have embeded LF
+            t['id'] = t['id'].replace('\n', '')
         if not _checkPermission('Manage portal', portal):
             # Filter out transactions done by other members of the portal.
             user_name = _getAuthenticatedUser(self).getUserName()