Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
501a0896
Commit
501a0896
authored
Jun 06, 2003
by
Steve Alexander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed old style __implements__ declarations to new-style implements()
ones.
parent
ef835347
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
src/transaction/manager.py
src/transaction/manager.py
+5
-3
src/transaction/txn.py
src/transaction/txn.py
+2
-1
No files found.
src/transaction/manager.py
View file @
501a0896
...
...
@@ -14,6 +14,8 @@
import
logging
import
sys
from
zope.interface
import
implements
from
transaction.interfaces
import
*
from
transaction.txn
import
Transaction
,
Status
,
Set
...
...
@@ -81,7 +83,7 @@ class AbstractTransactionManager(object):
class
TransactionManager
(
AbstractTransactionManager
):
__implements__
=
ITransactionManager
implements
(
ITransactionManager
)
def
__init__
(
self
):
self
.
logger
=
logging
.
getLogger
(
"txn"
)
...
...
@@ -124,7 +126,7 @@ class TransactionManager(AbstractTransactionManager):
class
Rollback
(
object
):
__implements__
=
IRollback
implements
(
IRollback
)
def
__init__
(
self
,
txn
,
resources
):
self
.
_txn
=
txn
...
...
@@ -151,7 +153,7 @@ class ThreadedTransactionManager(AbstractTransactionManager):
# does need a lock to prevent two different threads from resuming
# the same transaction.
__implements__
=
ITransactionManager
implements
(
ITransactionManager
)
def
__init__
(
self
):
self
.
logger
=
logging
.
getLogger
(
"txn"
)
...
...
src/transaction/txn.py
View file @
501a0896
...
...
@@ -17,6 +17,7 @@ __metaclass__ = type
from
transaction.interfaces
import
*
from
threading
import
Lock
import
logging
from
zope.interface
import
implements
try
:
from
sets
import
Set
...
...
@@ -43,7 +44,7 @@ class Status:
class
Transaction
:
__implements__
=
ITransaction
implements
(
ITransaction
)
def
__init__
(
self
,
manager
=
None
,
parent
=
None
):
self
.
_manager
=
manager
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment