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
ff27607e
Commit
ff27607e
authored
Jun 21, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bugs including handling of ZClasses created with
BoboPOS2.
parent
5a96e757
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
utilities/FS.py
utilities/FS.py
+7
-11
No files found.
utilities/FS.py
View file @
ff27607e
...
...
@@ -228,7 +228,8 @@ class Global:
def
__call__
(
self
,
*
args
):
return
Inst
(
self
,
args
)
__basicnew__
=
__call__
def
__basicnew__
(
self
):
return
Inst
(
self
,
None
)
def
_global
(
m
,
n
):
if
m
[:
8
]
==
'BoboPOS.'
:
...
...
@@ -236,6 +237,8 @@ def _global(m, n):
m
=
'ZODB.conversionhack'
n
=
'hack'
elif
m
==
'BoboPOS.PersistentMapping'
:
m
=
'Persistence'
elif
m
==
'BoboPOS.cPickleJar'
and
n
==
'ec'
:
m
=
n
=
'ExtensionClass'
else
:
raise
'Unexpected BoboPOS class'
,
(
m
,
n
)
...
...
@@ -253,7 +256,7 @@ class Inst:
def
__setstate__
(
self
,
state
):
self
.
_state
=
state
from
pickle
import
INST
,
GLOBAL
,
MARK
,
BUILD
,
OBJ
from
pickle
import
INST
,
GLOBAL
,
MARK
,
BUILD
,
OBJ
,
REDUCE
InstanceType
=
type
(
Ghost
())
...
...
@@ -320,18 +323,11 @@ class Pickler(pickle.Pickler):
memo
[
d
]
=
(
memo_len
,
object
)
return
args
=
object
.
_args
write
(
MARK
)
self
.
save_inst
(
object
.
_cls
)
if
args
:
for
arg
in
args
:
save
(
arg
)
save
(
object
.
_args
)
memo_len
=
len
(
memo
)
write
(
OBJ
+
self
.
put
(
len
(
memo
)
))
write
(
REDUCE
+
self
.
put
(
memo_len
))
memo
[
d
]
=
(
memo_len
,
object
)
...
...
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