Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
39bd6496
Commit
39bd6496
authored
Jul 16, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
b1015fdd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
wcfs/__init__.py
wcfs/__init__.py
+3
-3
No files found.
wcfs/__init__.py
View file @
39bd6496
...
...
@@ -46,7 +46,7 @@ import threading
from
persistent
import
Persistent
from
ZODB.FileStorage
import
FileStorage
from
ZODB.utils
import
z64
,
u64
,
p64
from
zodbtools.util
import
ashex
as
h
,
fromhex
# XXX -> use "ashex"
from
zodbtools.util
import
ashex
,
fromhex
from
six
import
reraise
...
...
@@ -337,8 +337,8 @@ def _path(wc, obj, at=None):
#assert type(obj) is ZBigFile XXX import cycle
objtypestr
=
type
(
obj
).
__module__
+
"."
+
type
(
obj
).
__name__
assert
objtypestr
==
"wendelin.bigfile.file_zodb.ZBigFile"
,
objtypestr
head
=
"head/"
if
at
is
None
else
(
"@%s/"
%
h
(
at
))
obj
=
"%s/bigfile/%s"
%
(
head
,
h
(
obj
.
_p_oid
))
head
=
"head/"
if
at
is
None
else
(
"@%s/"
%
ashex
(
at
))
obj
=
"%s/bigfile/%s"
%
(
head
,
ashex
(
obj
.
_p_oid
))
at
=
None
assert
isinstance
(
obj
,
str
)
assert
at
is
None
# must not be used with str
...
...
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