Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
127729e0
Commit
127729e0
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
c68d2e45
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 @
127729e0
...
@@ -14,6 +14,8 @@
...
@@ -14,6 +14,8 @@
import
logging
import
logging
import
sys
import
sys
from
zope.interface
import
implements
from
transaction.interfaces
import
*
from
transaction.interfaces
import
*
from
transaction.txn
import
Transaction
,
Status
,
Set
from
transaction.txn
import
Transaction
,
Status
,
Set
...
@@ -81,7 +83,7 @@ class AbstractTransactionManager(object):
...
@@ -81,7 +83,7 @@ class AbstractTransactionManager(object):
class
TransactionManager
(
AbstractTransactionManager
):
class
TransactionManager
(
AbstractTransactionManager
):
__implements__
=
ITransactionManager
implements
(
ITransactionManager
)
def
__init__
(
self
):
def
__init__
(
self
):
self
.
logger
=
logging
.
getLogger
(
"txn"
)
self
.
logger
=
logging
.
getLogger
(
"txn"
)
...
@@ -124,7 +126,7 @@ class TransactionManager(AbstractTransactionManager):
...
@@ -124,7 +126,7 @@ class TransactionManager(AbstractTransactionManager):
class
Rollback
(
object
):
class
Rollback
(
object
):
__implements__
=
IRollback
implements
(
IRollback
)
def
__init__
(
self
,
txn
,
resources
):
def
__init__
(
self
,
txn
,
resources
):
self
.
_txn
=
txn
self
.
_txn
=
txn
...
@@ -151,7 +153,7 @@ class ThreadedTransactionManager(AbstractTransactionManager):
...
@@ -151,7 +153,7 @@ class ThreadedTransactionManager(AbstractTransactionManager):
# does need a lock to prevent two different threads from resuming
# does need a lock to prevent two different threads from resuming
# the same transaction.
# the same transaction.
__implements__
=
ITransactionManager
implements
(
ITransactionManager
)
def
__init__
(
self
):
def
__init__
(
self
):
self
.
logger
=
logging
.
getLogger
(
"txn"
)
self
.
logger
=
logging
.
getLogger
(
"txn"
)
...
...
src/transaction/txn.py
View file @
127729e0
...
@@ -17,6 +17,7 @@ __metaclass__ = type
...
@@ -17,6 +17,7 @@ __metaclass__ = type
from
transaction.interfaces
import
*
from
transaction.interfaces
import
*
from
threading
import
Lock
from
threading
import
Lock
import
logging
import
logging
from
zope.interface
import
implements
try
:
try
:
from
sets
import
Set
from
sets
import
Set
...
@@ -43,7 +44,7 @@ class Status:
...
@@ -43,7 +44,7 @@ class Status:
class
Transaction
:
class
Transaction
:
__implements__
=
ITransaction
implements
(
ITransaction
)
def
__init__
(
self
,
manager
=
None
,
parent
=
None
):
def
__init__
(
self
,
manager
=
None
,
parent
=
None
):
self
.
_manager
=
manager
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