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
Kirill Smelkov
ZODB
Commits
adf92861
Commit
adf92861
authored
Jul 24, 2014
by
Tres Seaver
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #25 from navytux/fixup
Small fixups while learning ZODB
parents
db0eb296
eda11559
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
src/ZODB/scripts/fsrefs.py
src/ZODB/scripts/fsrefs.py
+3
-4
src/ZODB/scripts/netspace.py
src/ZODB/scripts/netspace.py
+1
-1
No files found.
src/ZODB/scripts/fsrefs.py
View file @
adf92861
...
...
@@ -70,8 +70,6 @@ from ZODB.utils import u64, oid_repr, get_pickle_metadata
from
ZODB.serialize
import
get_refs
from
ZODB.POSException
import
POSKeyError
VERBOSE
=
0
# There's a problem with oid. 'data' is its pickle, and 'serial' its
# serial number. 'missing' is a list of (oid, class, reason) triples,
# explaining what the problem(s) is(are).
...
...
@@ -94,6 +92,7 @@ def report(oid, data, serial, missing):
print
()
def
main
(
path
=
None
):
verbose
=
0
if
path
is
None
:
import
sys
import
getopt
...
...
@@ -101,7 +100,7 @@ def main(path=None):
opts
,
args
=
getopt
.
getopt
(
sys
.
argv
[
1
:],
"v"
)
for
k
,
v
in
opts
:
if
k
==
"-v"
:
VERBOSE
+=
1
verbose
+=
1
path
,
=
args
...
...
@@ -127,7 +126,7 @@ def main(path=None):
except
POSKeyError
:
undone
[
oid
]
=
1
except
:
if
VERBOSE
:
if
verbose
:
traceback
.
print_exc
()
noload
[
oid
]
=
1
...
...
src/ZODB/scripts/netspace.py
View file @
adf92861
...
...
@@ -10,7 +10,7 @@ from __future__ import print_function
import
ZODB
from
ZODB.FileStorage
import
FileStorage
from
ZODB.utils
import
U64
,
get_pickle_metadata
from
ZODB.
referencesf
import
referencesf
from
ZODB.
serialize
import
referencesf
from
six.moves
import
filter
def
find_paths
(
root
,
maxdist
):
...
...
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