Hello zodb-dev!

  there is a proposal to import transaction._transaction.Status instance to 
transaction package namespace
  and use in Zope for example

  from transaction import get, Status

  class Test:
      def __del__(self):
          if get().status = Status.Commited:
              print 'commited'
              print 'not commited'

  REQUEST._hold( Test() )

Best regards,
 Victor Safronovich
 NauMen.NauDoc.SoftwareDeveloper  http://www.naumen.ru

For more information about ZODB, see the ZODB Wiki:

ZODB-Dev mailing list  -  ZODB-Dev@zope.org

Reply via email to