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
dfd8fd84
Commit
dfd8fd84
authored
Jun 18, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added some defensive programming to get around weird ZODB 2 transaction
meta-data.
parent
29c5dc6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
utilities/FS.py
utilities/FS.py
+16
-3
No files found.
utilities/FS.py
View file @
dfd8fd84
...
...
@@ -110,8 +110,17 @@ class FS:
self
.
tpc_finish
()
return
if
newtrans
:
if
not
first
:
self
.
tpc_finish
()
self
.
tpc_begin
(
tname
,
user
,
t
)
try
:
string
.
atof
(
tname
)
except
:
# Ugh, we have a weird tname. We'll just ignore the transaction
# boundary and merge transactions
if
first
:
# But we can't ignore the first one, so we'll hack in a
# bogus start date
self
.
tpc_begin
(
'100'
,
user
,
t
)
else
:
if
not
first
:
self
.
tpc_finish
()
self
.
tpc_begin
(
tname
,
user
,
t
)
self
.
store
(
oid
,
p
)
def
store
(
self
,
oid
,
data
):
...
...
@@ -211,12 +220,16 @@ def cp(f1, f2, l):
class
Ghost
:
pass
class
Global
:
__safe_for_unpickling__
=
1
def
__init__
(
self
,
m
,
n
):
self
.
_module
,
self
.
_name
=
m
,
n
def
__call__
(
self
,
*
args
):
return
Inst
(
self
,
args
)
__basicnew__
=
__call__
def
_global
(
m
,
n
):
if
m
[:
8
]
==
'BoboPOS.'
:
if
m
==
'BoboPOS.PickleDictionary'
and
n
==
'Root'
:
...
...
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