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
nexedi
ZODB
Commits
07f45175
Commit
07f45175
authored
Aug 14, 2002
by
Martijn Pieters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up indentation and trailing whitespace.
parent
813e756a
Changes
57
Show whitespace changes
Inline
Side-by-side
Showing
57 changed files
with
511 additions
and
529 deletions
+511
-529
src/Persistence/PersistentList.py
src/Persistence/PersistentList.py
+8
-8
src/Persistence/PersistentMapping.py
src/Persistence/PersistentMapping.py
+5
-5
src/ZODB/ActivityMonitor.py
src/ZODB/ActivityMonitor.py
+4
-5
src/ZODB/BaseStorage.py
src/ZODB/BaseStorage.py
+14
-14
src/ZODB/ConflictResolution.py
src/ZODB/ConflictResolution.py
+2
-2
src/ZODB/Connection.py
src/ZODB/Connection.py
+37
-38
src/ZODB/DB.py
src/ZODB/DB.py
+24
-24
src/ZODB/DemoStorage.py
src/ZODB/DemoStorage.py
+36
-36
src/ZODB/ExportImport.py
src/ZODB/ExportImport.py
+4
-5
src/ZODB/FileStorage.py
src/ZODB/FileStorage.py
+114
-114
src/ZODB/MappingStorage.py
src/ZODB/MappingStorage.py
+12
-12
src/ZODB/Mount.py
src/ZODB/Mount.py
+6
-6
src/ZODB/POSException.py
src/ZODB/POSException.py
+5
-5
src/ZODB/PersistentList.py
src/ZODB/PersistentList.py
+8
-8
src/ZODB/PersistentMapping.py
src/ZODB/PersistentMapping.py
+5
-5
src/ZODB/TmpStore.py
src/ZODB/TmpStore.py
+5
-5
src/ZODB/Transaction.py
src/ZODB/Transaction.py
+21
-22
src/ZODB/UndoLogCompatible.py
src/ZODB/UndoLogCompatible.py
+3
-3
src/ZODB/ZApplication.py
src/ZODB/ZApplication.py
+9
-10
src/ZODB/__init__.py
src/ZODB/__init__.py
+2
-2
src/ZODB/bpthread.py
src/ZODB/bpthread.py
+3
-3
src/ZODB/conversionhack.py
src/ZODB/conversionhack.py
+2
-2
src/ZODB/dbmStorage.py
src/ZODB/dbmStorage.py
+8
-8
src/ZODB/fsIndex.py
src/ZODB/fsIndex.py
+9
-9
src/ZODB/fsrecover.py
src/ZODB/fsrecover.py
+11
-12
src/ZODB/lock_file.py
src/ZODB/lock_file.py
+4
-5
src/ZODB/referencesf.py
src/ZODB/referencesf.py
+2
-2
src/ZODB/tests/BasicStorage.py
src/ZODB/tests/BasicStorage.py
+1
-1
src/ZODB/tests/ConflictResolution.py
src/ZODB/tests/ConflictResolution.py
+7
-8
src/ZODB/tests/Corruption.py
src/ZODB/tests/Corruption.py
+2
-2
src/ZODB/tests/HistoryStorage.py
src/ZODB/tests/HistoryStorage.py
+1
-1
src/ZODB/tests/IteratorStorage.py
src/ZODB/tests/IteratorStorage.py
+1
-1
src/ZODB/tests/MTStorage.py
src/ZODB/tests/MTStorage.py
+2
-3
src/ZODB/tests/PackableStorage.py
src/ZODB/tests/PackableStorage.py
+5
-5
src/ZODB/tests/PersistentStorage.py
src/ZODB/tests/PersistentStorage.py
+2
-2
src/ZODB/tests/ReadOnlyStorage.py
src/ZODB/tests/ReadOnlyStorage.py
+1
-3
src/ZODB/tests/RevisionStorage.py
src/ZODB/tests/RevisionStorage.py
+1
-2
src/ZODB/tests/StorageTestBase.py
src/ZODB/tests/StorageTestBase.py
+6
-6
src/ZODB/tests/Synchronization.py
src/ZODB/tests/Synchronization.py
+5
-5
src/ZODB/tests/TransactionalUndoStorage.py
src/ZODB/tests/TransactionalUndoStorage.py
+2
-2
src/ZODB/tests/TransactionalUndoVersionStorage.py
src/ZODB/tests/TransactionalUndoVersionStorage.py
+4
-5
src/ZODB/tests/VersionStorage.py
src/ZODB/tests/VersionStorage.py
+7
-7
src/ZODB/tests/speed.py
src/ZODB/tests/speed.py
+6
-6
src/ZODB/tests/testActivityMonitor.py
src/ZODB/tests/testActivityMonitor.py
+3
-3
src/ZODB/tests/testCache.py
src/ZODB/tests/testCache.py
+5
-5
src/ZODB/tests/testDB.py
src/ZODB/tests/testDB.py
+0
-1
src/ZODB/tests/testDemoStorage.py
src/ZODB/tests/testDemoStorage.py
+0
-1
src/ZODB/tests/testFileStorage.py
src/ZODB/tests/testFileStorage.py
+6
-6
src/ZODB/tests/testMappingStorage.py
src/ZODB/tests/testMappingStorage.py
+0
-1
src/ZODB/tests/testPersistentMapping.py
src/ZODB/tests/testPersistentMapping.py
+1
-1
src/ZODB/tests/testTransaction.py
src/ZODB/tests/testTransaction.py
+53
-53
src/ZODB/tests/testUtils.py
src/ZODB/tests/testUtils.py
+2
-3
src/ZODB/tests/testZODB.py
src/ZODB/tests/testZODB.py
+6
-6
src/ZODB/tests/testfsIndex.py
src/ZODB/tests/testfsIndex.py
+3
-4
src/ZODB/utils.py
src/ZODB/utils.py
+3
-3
src/persistent/list.py
src/persistent/list.py
+8
-8
src/persistent/mapping.py
src/persistent/mapping.py
+5
-5
No files found.
src/Persistence/PersistentList.py
View file @
07f45175
...
@@ -14,9 +14,9 @@
...
@@ -14,9 +14,9 @@
"""Python implementation of persistent list.
"""Python implementation of persistent list.
$Id: PersistentList.py,v 1.
2 2002/02/11 23:49:07 gvanrossum
Exp $"""
$Id: PersistentList.py,v 1.
3 2002/08/14 22:07:09 mj
Exp $"""
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
import
Persistence
import
Persistence
from
UserList
import
UserList
from
UserList
import
UserList
...
...
src/Persistence/PersistentMapping.py
View file @
07f45175
...
@@ -14,9 +14,9 @@
...
@@ -14,9 +14,9 @@
"""Python implementation of persistent base types
"""Python implementation of persistent base types
$Id: PersistentMapping.py,v 1.
19 2002/02/12 22:33:08 gvanrossum
Exp $"""
$Id: PersistentMapping.py,v 1.
20 2002/08/14 22:07:09 mj
Exp $"""
__version__
=
'$Revision: 1.
19
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
20
$'
[
11
:
-
2
]
import
Persistence
import
Persistence
from
UserDict
import
UserDict
from
UserDict
import
UserDict
...
...
src/ZODB/ActivityMonitor.py
View file @
07f45175
...
@@ -13,8 +13,8 @@
...
@@ -13,8 +13,8 @@
##############################################################################
##############################################################################
"""ZODB transfer activity monitoring
"""ZODB transfer activity monitoring
$Id: ActivityMonitor.py,v 1.
2 2002/06/10 20:20:44 shane
Exp $"""
$Id: ActivityMonitor.py,v 1.
3 2002/08/14 22:07:09 mj
Exp $"""
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
import
time
import
time
...
@@ -104,4 +104,3 @@ class ActivityMonitor:
...
@@ -104,4 +104,3 @@ class ActivityMonitor:
div
[
'loads'
]
=
div
[
'loads'
]
+
total_loads
div
[
'loads'
]
=
div
[
'loads'
]
+
total_loads
return
res
return
res
src/ZODB/BaseStorage.py
View file @
07f45175
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
"""
"""
# Do this portably in the face of checking out with -kv
# Do this portably in the face of checking out with -kv
import
string
import
string
__version__
=
string
.
split
(
'$Revision: 1.
19
$'
)[
-
2
:][
0
]
__version__
=
string
.
split
(
'$Revision: 1.
20
$'
)[
-
2
:][
0
]
import
ThreadLock
,
bpthread
import
ThreadLock
,
bpthread
import
time
,
UndoLogCompatible
import
time
,
UndoLogCompatible
...
...
src/ZODB/ConflictResolution.py
View file @
07f45175
src/ZODB/Connection.py
View file @
07f45175
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
##############################################################################
##############################################################################
"""Database connection support
"""Database connection support
$Id: Connection.py,v 1.7
1 2002/06/14 20:25:06 jeremy
Exp $"""
$Id: Connection.py,v 1.7
2 2002/08/14 22:07:09 mj
Exp $"""
from
cPickleCache
import
PickleCache
,
MUCH_RING_CHECKING
from
cPickleCache
import
PickleCache
,
MUCH_RING_CHECKING
from
POSException
import
ConflictError
,
ReadConflictError
from
POSException
import
ConflictError
,
ReadConflictError
...
@@ -742,4 +742,3 @@ class tConnection(Connection):
...
@@ -742,4 +742,3 @@ class tConnection(Connection):
def
close
(
self
):
def
close
(
self
):
self
.
_breakcr
()
self
.
_breakcr
()
src/ZODB/DB.py
View file @
07f45175
...
@@ -13,8 +13,8 @@
...
@@ -13,8 +13,8 @@
##############################################################################
##############################################################################
"""Database objects
"""Database objects
$Id: DB.py,v 1.4
2 2002/06/10 20:20:44 shane
Exp $"""
$Id: DB.py,v 1.4
3 2002/08/14 22:07:09 mj
Exp $"""
__version__
=
'$Revision: 1.4
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.4
3
$'
[
11
:
-
2
]
import
cPickle
,
cStringIO
,
sys
,
POSException
,
UndoLogCompatible
import
cPickle
,
cStringIO
,
sys
,
POSException
,
UndoLogCompatible
from
Connection
import
Connection
from
Connection
import
Connection
...
...
src/ZODB/DemoStorage.py
View file @
07f45175
...
@@ -79,7 +79,7 @@ method::
...
@@ -79,7 +79,7 @@ method::
and call it to monitor the storage.
and call it to monitor the storage.
"""
"""
__version__
=
'$Revision: 1.1
1
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
2
$'
[
11
:
-
2
]
import
base64
,
time
,
string
import
base64
,
time
,
string
from
ZODB
import
POSException
,
BaseStorage
,
utils
from
ZODB
import
POSException
,
BaseStorage
,
utils
...
...
src/ZODB/ExportImport.py
View file @
07f45175
...
@@ -168,4 +168,3 @@ class Ghost: pass
...
@@ -168,4 +168,3 @@ class Ghost: pass
def
persistent_id
(
object
,
Ghost
=
Ghost
):
def
persistent_id
(
object
,
Ghost
=
Ghost
):
if
getattr
(
object
,
'__class__'
,
None
)
is
Ghost
:
if
getattr
(
object
,
'__class__'
,
None
)
is
Ghost
:
return
object
.
oid
return
object
.
oid
src/ZODB/FileStorage.py
View file @
07f45175
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
# may have a back pointer to a version record or to a non-version
# may have a back pointer to a version record or to a non-version
# record.
# record.
#
#
__version__
=
'$Revision: 1.9
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.9
5
$'
[
11
:
-
2
]
import
base64
import
base64
from
cPickle
import
Pickler
,
Unpickler
,
loads
from
cPickle
import
Pickler
,
Unpickler
,
loads
...
...
src/ZODB/MappingStorage.py
View file @
07f45175
...
@@ -87,7 +87,7 @@ method::
...
@@ -87,7 +87,7 @@ method::
and call it to minotor the storage.
and call it to minotor the storage.
"""
"""
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
import
POSException
,
BaseStorage
,
string
,
utils
import
POSException
,
BaseStorage
,
string
,
utils
from
TimeStamp
import
TimeStamp
from
TimeStamp
import
TimeStamp
...
...
src/ZODB/Mount.py
View file @
07f45175
...
@@ -13,8 +13,8 @@
...
@@ -13,8 +13,8 @@
##############################################################################
##############################################################################
"""Mounted database support
"""Mounted database support
$Id: Mount.py,v 1.1
5 2002/05/23 20:53:22 shane
Exp $"""
$Id: Mount.py,v 1.1
6 2002/08/14 22:07:09 mj
Exp $"""
__version__
=
'$Revision: 1.1
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
6
$'
[
11
:
-
2
]
import
thread
,
Persistence
,
Acquisition
import
thread
,
Persistence
,
Acquisition
import
ExtensionClass
,
string
,
time
,
sys
import
ExtensionClass
,
string
,
time
,
sys
...
...
src/ZODB/POSException.py
View file @
07f45175
...
@@ -13,8 +13,8 @@
...
@@ -13,8 +13,8 @@
##############################################################################
##############################################################################
"""BoboPOS-defined exceptions
"""BoboPOS-defined exceptions
$Id: POSException.py,v 1.1
1 2002/02/11 23:40:42 gvanrossum
Exp $"""
$Id: POSException.py,v 1.1
2 2002/08/14 22:07:09 mj
Exp $"""
__version__
=
'$Revision: 1.1
1
$'
.
split
()[
-
2
:][
0
]
__version__
=
'$Revision: 1.1
2
$'
.
split
()[
-
2
:][
0
]
from
string
import
join
from
string
import
join
from
types
import
StringType
,
DictType
from
types
import
StringType
,
DictType
...
...
src/ZODB/PersistentList.py
View file @
07f45175
...
@@ -14,9 +14,9 @@
...
@@ -14,9 +14,9 @@
"""Python implementation of persistent list.
"""Python implementation of persistent list.
$Id: PersistentList.py,v 1.
2 2002/02/11 23:49:07 gvanrossum
Exp $"""
$Id: PersistentList.py,v 1.
3 2002/08/14 22:07:09 mj
Exp $"""
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
import
Persistence
import
Persistence
from
UserList
import
UserList
from
UserList
import
UserList
...
...
src/ZODB/PersistentMapping.py
View file @
07f45175
...
@@ -14,9 +14,9 @@
...
@@ -14,9 +14,9 @@
"""Python implementation of persistent base types
"""Python implementation of persistent base types
$Id: PersistentMapping.py,v 1.
19 2002/02/12 22:33:08 gvanrossum
Exp $"""
$Id: PersistentMapping.py,v 1.
20 2002/08/14 22:07:09 mj
Exp $"""
__version__
=
'$Revision: 1.
19
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
20
$'
[
11
:
-
2
]
import
Persistence
import
Persistence
from
UserDict
import
UserDict
from
UserDict
import
UserDict
...
...
src/ZODB/TmpStore.py
View file @
07f45175
src/ZODB/Transaction.py
View file @
07f45175
...
@@ -13,8 +13,8 @@
...
@@ -13,8 +13,8 @@
##############################################################################
##############################################################################
"""Transaction management
"""Transaction management
$Id: Transaction.py,v 1.3
6 2002/04/12 19:59:55 jeremy
Exp $"""
$Id: Transaction.py,v 1.3
7 2002/08/14 22:07:09 mj
Exp $"""
__version__
=
'$Revision: 1.3
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
7
$'
[
11
:
-
2
]
import
time
,
sys
,
struct
,
POSException
import
time
,
sys
,
struct
,
POSException
from
struct
import
pack
from
struct
import
pack
...
@@ -407,4 +407,3 @@ del _t
...
@@ -407,4 +407,3 @@ del _t
import
__main__
import
__main__
__main__
.
__builtins__
.
get_transaction
=
get_transaction
__main__
.
__builtins__
.
get_transaction
=
get_transaction
src/ZODB/UndoLogCompatible.py
View file @
07f45175
src/ZODB/ZApplication.py
View file @
07f45175
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
This module provides a wrapper that causes a database connection to be created
This module provides a wrapper that causes a database connection to be created
and used when bobo publishes a bobo_application object.
and used when bobo publishes a bobo_application object.
"""
"""
__version__
=
'$Revision: 1.1
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
1
$'
[
11
:
-
2
]
StringType
=
type
(
''
)
StringType
=
type
(
''
)
connection_open_hooks
=
[]
connection_open_hooks
=
[]
...
@@ -82,4 +82,3 @@ class ZApplicationWrapper:
...
@@ -82,4 +82,3 @@ class ZApplicationWrapper:
class
Cleanup
:
pass
class
Cleanup
:
pass
src/ZODB/__init__.py
View file @
07f45175
src/ZODB/bpthread.py
View file @
07f45175
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
With this, we can run with or wothout threads.
With this, we can run with or wothout threads.
$Id: bpthread.py,v 1.
4 2002/02/11 23:40:42 gvanrossum
Exp $"""
$Id: bpthread.py,v 1.
5 2002/08/14 22:07:09 mj
Exp $"""
try
:
try
:
from
thread
import
*
from
thread
import
*
...
...
src/ZODB/conversionhack.py
View file @
07f45175
src/ZODB/dbmStorage.py
View file @
07f45175
...
@@ -18,7 +18,7 @@ don't support versions or Undo. This may be useful when implementing
...
@@ -18,7 +18,7 @@ don't support versions or Undo. This may be useful when implementing
objects like hit counters that don't need or want to participate
objects like hit counters that don't need or want to participate
in undo or versions.
in undo or versions.
"""
"""
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
import
base64
,
POSException
,
time
,
string
,
utils
import
base64
,
POSException
,
time
,
string
,
utils
...
...
src/ZODB/fsIndex.py
View file @
07f45175
src/ZODB/fsrecover.py
View file @
07f45175
...
@@ -327,4 +327,3 @@ def recover(argv=sys.argv):
...
@@ -327,4 +327,3 @@ def recover(argv=sys.argv):
if
__name__
==
'__main__'
:
recover
()
if
__name__
==
'__main__'
:
recover
()
src/ZODB/lock_file.py
View file @
07f45175
...
@@ -55,4 +55,3 @@ except:
...
@@ -55,4 +55,3 @@ except:
except
:
except
:
def
lock_file
(
file
,
error
=
None
):
def
lock_file
(
file
,
error
=
None
):
pass
pass
src/ZODB/referencesf.py
View file @
07f45175
src/ZODB/tests/BasicStorage.py
View file @
07f45175
...
@@ -16,7 +16,7 @@ from ZODB.tests.StorageTestBase \
...
@@ -16,7 +16,7 @@ from ZODB.tests.StorageTestBase \
ZERO
=
'
\
0
'
*
8
ZERO
=
'
\
0
'
*
8
class
BasicStorage
:
class
BasicStorage
:
def
checkBasics
(
self
):
def
checkBasics
(
self
):
t
=
Transaction
()
t
=
Transaction
()
...
...
src/ZODB/tests/ConflictResolution.py
View file @
07f45175
...
@@ -170,4 +170,3 @@ class ConflictResolvingTransUndoStorage:
...
@@ -170,4 +170,3 @@ class ConflictResolvingTransUndoStorage:
self
.
assertRaises
(
UndoError
,
self
.
_storage
.
transactionalUndo
,
self
.
assertRaises
(
UndoError
,
self
.
_storage
.
transactionalUndo
,
tid
,
t
)
tid
,
t
)
self
.
_storage
.
tpc_abort
(
t
)
self
.
_storage
.
tpc_abort
(
t
)
src/ZODB/tests/Corruption.py
View file @
07f45175
src/ZODB/tests/HistoryStorage.py
View file @
07f45175
...
@@ -9,7 +9,7 @@ from ZODB.tests.MinPO import MinPO
...
@@ -9,7 +9,7 @@ from ZODB.tests.MinPO import MinPO
from
ZODB.tests.StorageTestBase
import
zodb_unpickle
from
ZODB.tests.StorageTestBase
import
zodb_unpickle
class
HistoryStorage
:
class
HistoryStorage
:
def
checkSimpleHistory
(
self
):
def
checkSimpleHistory
(
self
):
eq
=
self
.
assertEqual
eq
=
self
.
assertEqual
...
...
src/ZODB/tests/IteratorStorage.py
View file @
07f45175
...
@@ -9,7 +9,7 @@ from ZODB.tests.StorageTestBase import zodb_unpickle
...
@@ -9,7 +9,7 @@ from ZODB.tests.StorageTestBase import zodb_unpickle
from
ZODB.utils
import
U64
,
p64
from
ZODB.utils
import
U64
,
p64
from
ZODB.Transaction
import
Transaction
from
ZODB.Transaction
import
Transaction
class
IteratorCompare
:
class
IteratorCompare
:
def
iter_verify
(
self
,
txniter
,
revids
,
val0
):
def
iter_verify
(
self
,
txniter
,
revids
,
val0
):
...
...
src/ZODB/tests/MTStorage.py
View file @
07f45175
...
@@ -190,4 +190,3 @@ class MTStorage:
...
@@ -190,4 +190,3 @@ class MTStorage:
def
check4ExtStorageThread
(
self
):
def
check4ExtStorageThread
(
self
):
self
.
_checkNThreads
(
4
,
ExtStorageClientThread
,
self
.
_storage
,
self
)
self
.
_checkNThreads
(
4
,
ExtStorageClientThread
,
self
.
_storage
,
self
)
src/ZODB/tests/PackableStorage.py
View file @
07f45175
...
@@ -18,7 +18,7 @@ from ZODB.referencesf import referencesf
...
@@ -18,7 +18,7 @@ from ZODB.referencesf import referencesf
ZERO
=
'
\
0
'
*
8
ZERO
=
'
\
0
'
*
8
# This class is for the root object. It must not contain a getoid() method
# This class is for the root object. It must not contain a getoid() method
# (really, attribute). The persistent pickling machinery -- in the dumps()
# (really, attribute). The persistent pickling machinery -- in the dumps()
# function below -- will pickle Root objects as normal, but any attributes
# function below -- will pickle Root objects as normal, but any attributes
...
@@ -64,7 +64,7 @@ def dumps(obj):
...
@@ -64,7 +64,7 @@ def dumps(obj):
return
s
.
getvalue
()
return
s
.
getvalue
()
class
PackableStorageBase
:
class
PackableStorageBase
:
# We keep a cache of object ids to instances so that the unpickler can
# We keep a cache of object ids to instances so that the unpickler can
# easily return any persistent object.
# easily return any persistent object.
...
@@ -100,7 +100,7 @@ class PackableStorageBase:
...
@@ -100,7 +100,7 @@ class PackableStorageBase:
return
loads
return
loads
class
PackableStorage
(
PackableStorageBase
):
class
PackableStorage
(
PackableStorageBase
):
def
_initroot
(
self
):
def
_initroot
(
self
):
try
:
try
:
...
...
src/ZODB/tests/PersistentStorage.py
View file @
07f45175
src/ZODB/tests/ReadOnlyStorage.py
View file @
07f45175
...
@@ -57,5 +57,3 @@ class ReadOnlyStorage:
...
@@ -57,5 +57,3 @@ class ReadOnlyStorage:
self
.
assertRaises
(
ReadOnlyError
,
self
.
_storage
.
transactionalUndo
,
self
.
assertRaises
(
ReadOnlyError
,
self
.
_storage
.
transactionalUndo
,
'
\
000
'
*
8
,
t
)
'
\
000
'
*
8
,
t
)
self
.
_storage
.
tpc_abort
(
t
)
self
.
_storage
.
tpc_abort
(
t
)
src/ZODB/tests/RevisionStorage.py
View file @
07f45175
...
@@ -18,4 +18,3 @@ class RevisionStorage:
...
@@ -18,4 +18,3 @@ class RevisionStorage:
for
revid
,
value
in
revisions
.
items
():
for
revid
,
value
in
revisions
.
items
():
data
=
self
.
_storage
.
loadSerial
(
oid
,
revid
)
data
=
self
.
_storage
.
loadSerial
(
oid
,
revid
)
self
.
assertEqual
(
zodb_unpickle
(
data
),
value
)
self
.
assertEqual
(
zodb_unpickle
(
data
),
value
)
src/ZODB/tests/StorageTestBase.py
View file @
07f45175
...
@@ -117,7 +117,7 @@ def removefs(base):
...
@@ -117,7 +117,7 @@ def removefs(base):
if
err
[
0
]
!=
errno
.
ENOENT
:
if
err
[
0
]
!=
errno
.
ENOENT
:
raise
raise
class
StorageTestBase
(
unittest
.
TestCase
):
class
StorageTestBase
(
unittest
.
TestCase
):
# XXX It would be simpler if concrete tests didn't need to extend
# XXX It would be simpler if concrete tests didn't need to extend
...
...
src/ZODB/tests/Synchronization.py
View file @
07f45175
src/ZODB/tests/TransactionalUndoStorage.py
View file @
07f45175
src/ZODB/tests/TransactionalUndoVersionStorage.py
View file @
07f45175
...
@@ -11,7 +11,7 @@ from ZODB.Transaction import Transaction
...
@@ -11,7 +11,7 @@ from ZODB.Transaction import Transaction
from
ZODB.tests.MinPO
import
MinPO
from
ZODB.tests.MinPO
import
MinPO
from
ZODB.tests.StorageTestBase
import
zodb_unpickle
from
ZODB.tests.StorageTestBase
import
zodb_unpickle
class
TransactionalUndoVersionStorage
:
class
TransactionalUndoVersionStorage
:
def
_x_dostore
(
self
,
*
args
,
**
kwargs
):
def
_x_dostore
(
self
,
*
args
,
**
kwargs
):
...
@@ -227,4 +227,3 @@ class TransactionalUndoVersionStorage:
...
@@ -227,4 +227,3 @@ class TransactionalUndoVersionStorage:
self
.
assertEqual
(
load_value
(
oid1
),
0
)
self
.
assertEqual
(
load_value
(
oid1
),
0
)
# after abort, we should see non-version data
# after abort, we should see non-version data
self
.
assertEqual
(
load_value
(
oid1
,
version
),
0
)
self
.
assertEqual
(
load_value
(
oid1
,
version
),
0
)
src/ZODB/tests/VersionStorage.py
View file @
07f45175
...
@@ -12,7 +12,7 @@ from ZODB.Transaction import Transaction
...
@@ -12,7 +12,7 @@ from ZODB.Transaction import Transaction
from
ZODB.tests.MinPO
import
MinPO
from
ZODB.tests.MinPO
import
MinPO
from
ZODB.tests.StorageTestBase
import
zodb_unpickle
from
ZODB.tests.StorageTestBase
import
zodb_unpickle
class
VersionStorage
:
class
VersionStorage
:
def
checkVersionedStoreAndLoad
(
self
):
def
checkVersionedStoreAndLoad
(
self
):
eq
=
self
.
assertEqual
eq
=
self
.
assertEqual
...
...
src/ZODB/tests/speed.py
View file @
07f45175
src/ZODB/tests/testActivityMonitor.py
View file @
07f45175
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
See ZODB/ActivityMonitor.py
See ZODB/ActivityMonitor.py
$Id: testActivityMonitor.py,v 1.
2 2002/06/10 20:20:44 shane
Exp $
$Id: testActivityMonitor.py,v 1.
3 2002/08/14 22:07:09 mj
Exp $
"""
"""
import
unittest
import
unittest
...
...
src/ZODB/tests/testCache.py
View file @
07f45175
src/ZODB/tests/testDB.py
View file @
07f45175
...
@@ -38,4 +38,3 @@ class DBTests(unittest.TestCase):
...
@@ -38,4 +38,3 @@ class DBTests(unittest.TestCase):
def
test_suite
():
def
test_suite
():
return
unittest
.
makeSuite
(
DBTests
)
return
unittest
.
makeSuite
(
DBTests
)
src/ZODB/tests/testDemoStorage.py
View file @
07f45175
...
@@ -24,4 +24,3 @@ if __name__ == "__main__":
...
@@ -24,4 +24,3 @@ if __name__ == "__main__":
loader
=
unittest
.
TestLoader
()
loader
=
unittest
.
TestLoader
()
loader
.
testMethodPrefix
=
"check"
loader
.
testMethodPrefix
=
"check"
unittest
.
main
(
testLoader
=
loader
)
unittest
.
main
(
testLoader
=
loader
)
src/ZODB/tests/testFileStorage.py
View file @
07f45175
src/ZODB/tests/testMappingStorage.py
View file @
07f45175
...
@@ -22,4 +22,3 @@ if __name__ == "__main__":
...
@@ -22,4 +22,3 @@ if __name__ == "__main__":
loader
=
unittest
.
TestLoader
()
loader
=
unittest
.
TestLoader
()
loader
.
testMethodPrefix
=
"check"
loader
.
testMethodPrefix
=
"check"
unittest
.
main
(
testLoader
=
loader
)
unittest
.
main
(
testLoader
=
loader
)
src/ZODB/tests/testPersistentMapping.py
View file @
07f45175
src/ZODB/tests/testTransaction.py
View file @
07f45175
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
"""
"""
Revision information:
Revision information:
$Id: testTransaction.py,v 1.
9 2002/08/14 15:37:08 jeremy
Exp $
$Id: testTransaction.py,v 1.
10 2002/08/14 22:07:09 mj
Exp $
"""
"""
"""
"""
...
...
src/ZODB/tests/testUtils.py
View file @
07f45175
...
@@ -38,4 +38,3 @@ if __name__ == "__main__":
...
@@ -38,4 +38,3 @@ if __name__ == "__main__":
loader
=
unittest
.
TestLoader
()
loader
=
unittest
.
TestLoader
()
loader
.
testMethodPrefix
=
"check"
loader
.
testMethodPrefix
=
"check"
unittest
.
main
(
testLoader
=
loader
)
unittest
.
main
(
testLoader
=
loader
)
src/ZODB/tests/testZODB.py
View file @
07f45175
src/ZODB/tests/testfsIndex.py
View file @
07f45175
import
unittest
,
sys
import
unittest
,
sys
from
ZODB.fsIndex
import
fsIndex
from
ZODB.fsIndex
import
fsIndex
from
ZODB.utils
import
p64
from
ZODB.utils
import
p64
...
...
src/ZODB/utils.py
View file @
07f45175
src/persistent/list.py
View file @
07f45175
...
@@ -14,9 +14,9 @@
...
@@ -14,9 +14,9 @@
"""Python implementation of persistent list.
"""Python implementation of persistent list.
$Id: list.py,v 1.
2 2002/02/11 23:49:07 gvanrossum
Exp $"""
$Id: list.py,v 1.
3 2002/08/14 22:07:09 mj
Exp $"""
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
import
Persistence
import
Persistence
from
UserList
import
UserList
from
UserList
import
UserList
...
...
src/persistent/mapping.py
View file @
07f45175
...
@@ -14,9 +14,9 @@
...
@@ -14,9 +14,9 @@
"""Python implementation of persistent base types
"""Python implementation of persistent base types
$Id: mapping.py,v 1.
19 2002/02/12 22:33:08 gvanrossum
Exp $"""
$Id: mapping.py,v 1.
20 2002/08/14 22:07:09 mj
Exp $"""
__version__
=
'$Revision: 1.
19
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
20
$'
[
11
:
-
2
]
import
Persistence
import
Persistence
from
UserDict
import
UserDict
from
UserDict
import
UserDict
...
...
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