Py3: failure when data managers don't supply a sort key

Bug #1051345 reported by Chris McDonough
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
transaction
New
Undecided
Unassigned

Bug Description

In Python 3, when multiple datamanagers are joined to a transaction and those
datamanagers do not have a ``sortKey`` method, we would previously get an
exception in ``transaction._transaction.Transaction._commitResources``
since Python 3 no longer supports comparisons if the operands are None.

A patch is attached which causes ``transaction._transaction.rm_key`` to return the name of the datamanager
class instead of None if the datamanager does not have a ``sortKey`` method, which fixes this problem.

Revision history for this message
Chris McDonough (chrism-plope) wrote :
Revision history for this message
Chris McDonough (chrism-plope) wrote :

Note that this patch was originally supplied by Chris Rossi.

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.