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
24824495
Commit
24824495
authored
May 19, 2015
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore/remove whitespace.
parent
30d3eced
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
persistent/interfaces.py
persistent/interfaces.py
+6
-6
No files found.
persistent/interfaces.py
View file @
24824495
...
...
@@ -23,7 +23,7 @@ try:
from
persistent.cPersistence
import
UPTODATE
from
persistent.cPersistence
import
CHANGED
from
persistent.cPersistence
import
STICKY
except
ImportError
:
#
pragma: no cover
except
ImportError
:
#
pragma NO COVER
GHOST
=
-
1
UPTODATE
=
0
CHANGED
=
1
...
...
@@ -314,10 +314,10 @@ class IPersistent(Interface):
def
_p_getattr
(
name
):
"""Test whether the base class must handle the name
The method unghostifies the object, if necessary.
The method records the object access, if necessary.
This method should be called by subclass __getattribute__
implementations before doing anything else. If the method
returns True, then __getattribute__ implementations must delegate
...
...
@@ -471,7 +471,7 @@ class IPickleCache(Interface):
""" Perform an incremental garbage collection sweep.
o Reduce number of non-ghosts to 'cache_size', if possible.
o Ghostify in LRU order.
o Skip dirty or sticky objects.
...
...
@@ -505,7 +505,7 @@ class IPickleCache(Interface):
If the object's '_p_jar' is not None, raise.
If 'oid' is already in the cache, raise.
If 'oid' is already in the cache, raise.
"""
def
reify
(
to_reify
):
...
...
@@ -536,7 +536,7 @@ class IPickleCache(Interface):
o Any OID corresponding to a p-class will cause the corresponding
p-class to be removed from the cache.
o For all other OIDs, ghostify the corrsponding object and
o For all other OIDs, ghostify the corrsponding object and
remove it from the ring.
"""
...
...
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