Re: [Zope-dev] Documentation on get_transaction().commit(...)

2006-09-07 Thread Dieter Maurer
[EMAIL PROTECTED] wrote at 2006-9-5 19:10 -0400:
 ...
I am calling get_transaction().commit(1) at various points in my program
and it seems like it's not actually committing those transactions.

commit(1) commits a subtransaction.

As the name suggests, you have to commit the main transaction
as well (at some time). You do this by commit() (or commit(0)).



-- 
Dieter
___
Zope-Dev maillist  -  Zope-Dev@zope.org
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 )


Re: [Zope-dev] Documentation on get_transaction().commit(...)

2006-09-07 Thread Brian Rosenthal

Dieter, thanks.

On Thu, 7 Sep 2006 22:09:27 +0200, Dieter Maurer [EMAIL PROTECTED]
said:
 [EMAIL PROTECTED] wrote at 2006-9-5 19:10 -0400:
  ...
 I am calling get_transaction().commit(1) at various points in my program
 and it seems like it's not actually committing those transactions.
 
 commit(1) commits a subtransaction.
 
 As the name suggests, you have to commit the main transaction
 as well (at some time). You do this by commit() (or commit(0)).
 
 
 
 -- 
 Dieter

Brian Rosenthal
General Partner, RoboCommerce, LLC
[EMAIL PROTECTED]
http://www.robocommerce.com
800-644-7626

___
Zope-Dev maillist  -  Zope-Dev@zope.org
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 )


[Zope-dev] Documentation on get_transaction().commit(...)

2006-09-05 Thread zope-dev

Where would I find API documentation on get_transaction().commit(...)?

I am calling get_transaction().commit(1) at various points in my program
and it seems like it's not actually committing those transactions.

I'd be grateful on a quick explanation for how this works.

I'd like to commit sub-transactions as I go, but I don't want to stop
the execution of the script (without the 1, it seems to arrest
execution).  I do not care about the ability to roll back the
transaction.

Best,
Brian

Brian Rosenthal
General Partner, RoboCommerce, LLC
[EMAIL PROTECTED]
http://www.robocommerce.com
800-644-7626

___
Zope-Dev maillist  -  Zope-Dev@zope.org
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 )