[ZODB-Dev] import Status from _transaction to __init__

Victor Safronovich vsafronovich at naumen.ru
Thu Nov 3 05:18:09 EST 2005


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



More information about the ZODB-Dev mailing list