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
e26524df
Commit
e26524df
authored
Mar 26, 2021
by
Kirill Smelkov
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
X wcfs, lib/zodb: DemoStorage support
parent
e3aef24b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
lib/zodb.py
lib/zodb.py
+6
-0
wcfs/go.mod
wcfs/go.mod
+1
-1
wcfs/go.sum
wcfs/go.sum
+2
-0
No files found.
lib/zodb.py
View file @
e26524df
# -*- coding: utf-8 -*-
# Wendelin.bigfile | common ZODB-related helpers
# Wendelin.bigfile | common ZODB-related helpers
# Copyright (C) 2014-2021 Nexedi SA and Contributors.
# Copyright (C) 2014-2021 Nexedi SA and Contributors.
# Kirill Smelkov <kirr@nexedi.com>
# Kirill Smelkov <kirr@nexedi.com>
...
@@ -21,6 +22,7 @@
...
@@ -21,6 +22,7 @@
import
ZODB
import
ZODB
from
ZODB.FileStorage
import
FileStorage
from
ZODB.FileStorage
import
FileStorage
from
ZODB.DemoStorage
import
DemoStorage
from
ZODB
import
DB
from
ZODB
import
DB
from
ZODB
import
POSException
from
ZODB
import
POSException
from
ZODB.utils
import
p64
,
u64
from
ZODB.utils
import
p64
,
u64
...
@@ -306,6 +308,10 @@ def zstor_2zurl(zstor):
...
@@ -306,6 +308,10 @@ def zstor_2zurl(zstor):
if
isinstance
(
zstor
,
FileStorage
):
if
isinstance
(
zstor
,
FileStorage
):
return
"file://%s"
%
(
zstor
.
_file_name
,)
return
"file://%s"
%
(
zstor
.
_file_name
,)
if
isinstance
(
zstor
,
DemoStorage
):
# demo:(base_zurl)/(δ_zurl)
return
"demo:(%s)/(%s)"
%
(
zstor_2zurl
(
zstor
.
base
),
zstor_2zurl
(
zstor
.
changes
))
ztype
=
type
(
zstor
).
__module__
+
"."
+
type
(
zstor
).
__name__
ztype
=
type
(
zstor
).
__module__
+
"."
+
type
(
zstor
).
__name__
# ZEO
# ZEO
...
...
wcfs/go.mod
View file @
e26524df
...
@@ -10,7 +10,7 @@ require (
...
@@ -10,7 +10,7 @@ require (
github.com/pkg/errors v0.9.1
github.com/pkg/errors v0.9.1
github.com/stretchr/testify v1.7.0
github.com/stretchr/testify v1.7.0
lab.nexedi.com/kirr/go123 v0.0.0-20210302025843-863c4602a230
lab.nexedi.com/kirr/go123 v0.0.0-20210302025843-863c4602a230
lab.nexedi.com/kirr/neo/go v0.0.0-2021032
2184934-2888bbbcbe4b
lab.nexedi.com/kirr/neo/go v0.0.0-2021032
6102715-dc35035cdc18
)
)
// we use kirr/go-fuse@y/nodefs-cancel
// we use kirr/go-fuse@y/nodefs-cancel
...
...
wcfs/go.sum
View file @
e26524df
...
@@ -189,3 +189,5 @@ lab.nexedi.com/kirr/go123 v0.0.0-20210302025843-863c4602a230 h1:Ca6y0vXtxL2ncrg6
...
@@ -189,3 +189,5 @@ lab.nexedi.com/kirr/go123 v0.0.0-20210302025843-863c4602a230 h1:Ca6y0vXtxL2ncrg6
lab.nexedi.com/kirr/go123 v0.0.0-20210302025843-863c4602a230/go.mod h1:pwDpdCuvtz0QxisDzV/z9eUb9zc/rMQec520h4i8VWQ=
lab.nexedi.com/kirr/go123 v0.0.0-20210302025843-863c4602a230/go.mod h1:pwDpdCuvtz0QxisDzV/z9eUb9zc/rMQec520h4i8VWQ=
lab.nexedi.com/kirr/neo/go v0.0.0-20210322184934-2888bbbcbe4b h1:JmC5mk3Mts39k6llztsx28tSAOarUoghcpCgNleBGro=
lab.nexedi.com/kirr/neo/go v0.0.0-20210322184934-2888bbbcbe4b h1:JmC5mk3Mts39k6llztsx28tSAOarUoghcpCgNleBGro=
lab.nexedi.com/kirr/neo/go v0.0.0-20210322184934-2888bbbcbe4b/go.mod h1:llI3hcJJMACe+rYuXUfS5dljjwIrlBMfJ1ZeRcey96A=
lab.nexedi.com/kirr/neo/go v0.0.0-20210322184934-2888bbbcbe4b/go.mod h1:llI3hcJJMACe+rYuXUfS5dljjwIrlBMfJ1ZeRcey96A=
lab.nexedi.com/kirr/neo/go v0.0.0-20210326102715-dc35035cdc18 h1:ysqIq6WqSMhCPbSRt3RnI1geV+chVkneXV7Wxn9zsEc=
lab.nexedi.com/kirr/neo/go v0.0.0-20210326102715-dc35035cdc18/go.mod h1:llI3hcJJMACe+rYuXUfS5dljjwIrlBMfJ1ZeRcey96A=
Kirill Smelkov
@kirr
mentioned in commit
a05db040
·
Oct 28, 2021
mentioned in commit
a05db040
mentioned in commit a05db0408929b08ab5ecb7c8238711661e303ce0
Toggle commit list
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