On Mon, Jul 28, 2003 at 02:49:33PM -0400, Casey Duncan wrote:
> You can usually commit a subtransaction to get a _p_jar and oid (I think) set. 
> You can still abort this at the end of the test to clean up.

yep, this seems to work very nicely! Thanks Casey!

def setUp(self):
   ...
   get_transaction().commit(1)
   ...


def tearDown(self):
   ...
   get_transaction().abort(1)
   ...

-- 

Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's EXTRA YELLOW BLOWER CHEESEMONGER!
(random hero from isometric.spaceninja.com)

_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )

Reply via email to