Andreas Jung wrote:



--On 16. Juni 2006 10:03:23 +0200 robert rottermann <[EMAIL PROTECTED]> wrote:

in a unittest I use transaction.begin() as follows:

import transaction
transaction.get().begin()

I then get the following error:
AttributeError: 'Transaction' object has no attribute 'begin'

when I look at the code I am unsure whether transaction should have a
begin method.

If it does not exist anymore, by what is the method replaced?


Transaction.begin() was removed in ZODB 3.6 (and has been deprecated for a while). Possibly you're looking at different ZODB versions.

-aj


thanks,
in both transaction.__init__ and transaction.interfaces.ITransactionManager
of Zope2.9 I found a begin method.

robert
begin:vcard
fn:robert  rottermann
n:rottermann;robert 
email;internet:[EMAIL PROTECTED]
tel;work:031 333 10 20
tel;fax:031 333 10 23
tel;home:031 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

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

Reply via email to