Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
persistent
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
persistent
Commits
e11c1cf5
Commit
e11c1cf5
authored
Jun 29, 2012
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename 'pyPersistence' -> 'persistence'.
parent
603bbbb3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
persistent/__init__.py
persistent/__init__.py
+6
-6
persistent/persistence.py
persistent/persistence.py
+0
-0
persistent/tests/test_persistence.py
persistent/tests/test_persistence.py
+6
-6
No files found.
persistent/__init__.py
View file @
e11c1cf5
...
...
@@ -23,16 +23,16 @@ try:
from
persistent.cPersistence
import
STICKY
from
persistent.cPersistence
import
simple_new
except
ImportError
:
#pragma NO COVER
from
persistent.p
yP
ersistence
import
Persistent
from
persistent.p
yP
ersistence
import
GHOST
from
persistent.p
yP
ersistence
import
UPTODATE
from
persistent.p
yP
ersistence
import
CHANGED
from
persistent.p
yP
ersistence
import
STICKY
from
persistent.persistence
import
Persistent
from
persistent.persistence
import
GHOST
from
persistent.persistence
import
UPTODATE
from
persistent.persistence
import
CHANGED
from
persistent.persistence
import
STICKY
else
:
from
persistent._compat
import
copy_reg
copy_reg
.
constructor
(
simple_new
)
# Make an interface declaration for Persistent, if zope.interface
# is available. Note that the
pyPersistent
version already does this.
# is available. Note that the
Python
version already does this.
try
:
from
zope.interface
import
classImplements
except
ImportError
:
#pragma NO COVER
...
...
persistent/p
yP
ersistence.py
→
persistent/persistence.py
View file @
e11c1cf5
File moved
persistent/tests/test_persistence.py
View file @
e11c1cf5
...
...
@@ -58,7 +58,7 @@ class _Persistent_Base(object):
verifyObject
(
IPersistent
,
self
.
_makeOne
())
def
test_ctor
(
self
):
from
persistent.p
yP
ersistence
import
_INITIAL_SERIAL
from
persistent.persistence
import
_INITIAL_SERIAL
inst
=
self
.
_makeOne
()
self
.
assertEqual
(
inst
.
_p_jar
,
None
)
self
.
assertEqual
(
inst
.
_p_oid
,
None
)
...
...
@@ -160,7 +160,7 @@ class _Persistent_Base(object):
def
test_delete_p_serial
(
self
):
from
persistent.timestamp
import
_makeOctets
from
persistent.p
yP
ersistence
import
_INITIAL_SERIAL
from
persistent.persistence
import
_INITIAL_SERIAL
SERIAL
=
_makeOctets
(
'
\
x01
'
*
8
)
inst
=
self
.
_makeOne
()
inst
.
_p_serial
=
SERIAL
...
...
@@ -507,7 +507,7 @@ class _Persistent_Base(object):
self
.
_checkMRU
(
jar
,
[])
def
test___getattribute__special_name
(
self
):
from
persistent.p
yP
ersistence
import
SPECIAL_NAMES
from
persistent.persistence
import
SPECIAL_NAMES
inst
,
jar
,
OID
=
self
.
_makeOneWithJar
()
self
.
_clearMRU
(
jar
)
for
name
in
SPECIAL_NAMES
:
...
...
@@ -733,7 +733,7 @@ class _Persistent_Base(object):
inst
.
__setstate__
(
None
)
# doesn't raise, but doesn't change anything
def
test___setstate___nonempty
(
self
):
from
persistent.p
yP
ersistence
import
_INITIAL_SERIAL
from
persistent.persistence
import
_INITIAL_SERIAL
inst
=
self
.
_makeOne
()
self
.
assertRaises
((
ValueError
,
TypeError
),
inst
.
__setstate__
,
{
'bogus'
:
1
})
...
...
@@ -1110,7 +1110,7 @@ class _Persistent_Base(object):
self
.
_checkMRU
(
jar
,
[])
def
test__p_getattr_w_special_names
(
self
):
from
persistent.p
yP
ersistence
import
SPECIAL_NAMES
from
persistent.persistence
import
SPECIAL_NAMES
inst
,
jar
,
OID
=
self
.
_makeOneWithJar
()
inst
.
_p_deactivate
()
for
name
in
SPECIAL_NAMES
:
...
...
@@ -1175,7 +1175,7 @@ class _Persistent_Base(object):
class
PyPersistentTests
(
unittest
.
TestCase
,
_Persistent_Base
):
def
_getTargetClass
(
self
):
from
persistent.p
yP
ersistence
import
Persistent
from
persistent.persistence
import
Persistent
return
Persistent
def
_makeCache
(
self
,
jar
):
...
...
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