Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
41aaa6f2
Commit
41aaa6f2
authored
May 16, 2010
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop the dependency on the ThreadLock distribution, by using Python's thread module instead.
parent
6e83525c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
7 deletions
+11
-7
buildout.cfg
buildout.cfg
+0
-1
doc/CHANGES.rst
doc/CHANGES.rst
+3
-0
setup.py
setup.py
+0
-1
src/Shared/DC/ZRDB/THUNK.py
src/Shared/DC/ZRDB/THUNK.py
+8
-4
versions.cfg
versions.cfg
+0
-1
No files found.
buildout.cfg
View file @
41aaa6f2
...
...
@@ -41,7 +41,6 @@ eggs =
Persistence
Record
RestrictedPython
ThreadLock
initgroups
tempstorage
ZopeUndo
...
...
doc/CHANGES.rst
View file @
41aaa6f2
...
...
@@ -11,6 +11,9 @@ Trunk (unreleased)
Restructuring
+++++++++++++
-
Drop
the
dependency
on
the
ThreadLock
distribution
,
by
using
Python
's thread
module instead.
- Removed Zope2'
s
own
mkzeoinstance
script
.
If
you
want
to
set
up
ZEO
instances
please
install
the
zope
.
mkzeoinstance
and
use
its
script
.
...
...
setup.py
View file @
41aaa6f2
...
...
@@ -66,7 +66,6 @@ setup(name='Zope2',
'Persistence'
,
'Record'
,
'RestrictedPython'
,
'ThreadLock'
,
'ZConfig'
,
'ZODB3'
,
'ZopeUndo'
,
...
...
src/Shared/DC/ZRDB/THUNK.py
View file @
41aaa6f2
...
...
@@ -11,11 +11,13 @@
#
##############################################################################
import
TM
,
ThreadLock
import
thread
import
TM
from
TM
import
Surrogate
import
transaction
thunk_lock
=
ThreadLock
.
allocate_lock
()
thunk_lock
=
thread
.
allocate_lock
()
class
THUNKED_TM
(
TM
.
TM
):
"""A big heavy hammer for handling non-thread safe DAs
...
...
@@ -35,14 +37,16 @@ class THUNKED_TM(TM.TM):
def
tpc_finish
(
self
,
*
ignored
):
if
self
.
_registered
:
try
:
self
.
_finish
()
try
:
self
.
_finish
()
finally
:
thunk_lock
.
release
()
self
.
_registered
=
0
def
abort
(
self
,
*
ignored
):
if
self
.
_registered
:
try
:
self
.
_abort
()
try
:
self
.
_abort
()
finally
:
thunk_lock
.
release
()
self
.
_registered
=
0
versions.cfg
View file @
41aaa6f2
...
...
@@ -14,7 +14,6 @@ Persistence = 2.13.1
Record = 2.13.0
RestrictedPython = 3.5.2
tempstorage = 2.11.2
ThreadLock = 2.13.0
ZopeUndo = 2.12.0
# Zope2 dependencies
...
...
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