[ZODB-Dev] Savepoints and Shared.DC.ZRDB.TM

Sidnei da Silva sidnei at enfoldsystems.com
Tue Dec 20 21:06:04 EST 2005


On Tue, Dec 20, 2005 at 09:01:08PM -0500, Tim Peters wrote:
| [Sidnei da Silva]
| > I have a object that subclasses from Shared.DC.ZRDB.TM and it's bombing
| > with a 'TypeError: Savepoints unsupported' with Zope 2.8.
| 
| Please find a full traceback and share it.
| 
| > Should the Shared.DC.ZRDB.TM implement savepoints as a 'noop' maybe?
| 
| No -- "lying" would make matters worse.
| 
| > Note that some (all?) RDB adapters might depend on this class still.
| 
| Whether that matters largely depends on the traceback we haven't seen yet
| ;-)

Happens on line 632 of a current Zope 2.8 checkout:

                if not optimistic:
                    raise TypeError("Savepoints unsupported", datamanager)


'datamanager' is a MultiObjectResourceAdapter for a subclass of
Shared.DC.ZRDB.TM that was registered using the 'register' method of
the Transaction class.

-- 
Sidnei da Silva
Enfold Systems, LLC.
http://enfoldsystems.com


More information about the ZODB-Dev mailing list