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'
          else:
              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:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev

Reply via email to