[transaction] handle ``mode`` default value in Transaction
The transaction mode is now explicitly passed at creation time and always read
from the Transaction object.
Note that there is a slight behavior change. The transaction mode is now set at
the creation of the transaction. Changes made to the default value have no
longer any effect on existing transaction.
Upstream Author:
%(author)s <%(author-email)s>
Copyright:
Copyright (c) %(year)s %(author)s.
%(author-web-site)s -- mailto:%(author-email)s