Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7123137
D24.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D24.id.diff
View Options
diff --git a/swh/storage/api/server.py b/swh/storage/api/server.py
--- a/swh/storage/api/server.py
+++ b/swh/storage/api/server.py
@@ -9,9 +9,10 @@
from flask import Flask, g, request
from swh.core import config
-from .. import Storage
-from ..api.common import (BytesRequest, decode_request, error_handler,
- encode_data_server as encode_data)
+from swh.storage import Storage
+from swh.storage.api.common import (BytesRequest, decode_request,
+ error_handler,
+ encode_data_server as encode_data)
DEFAULT_CONFIG = {
'db': ('str', 'dbname=softwareheritage-dev'),
diff --git a/swh/storage/objstorage/api/server.py b/swh/storage/objstorage/api/server.py
--- a/swh/storage/objstorage/api/server.py
+++ b/swh/storage/objstorage/api/server.py
@@ -7,9 +7,10 @@
from flask import Flask, g, request
from swh.core import config
-from .. import ObjStorage
-from ...api.common import (BytesRequest, decode_request, error_handler,
- encode_data_server as encode_data)
+from swh.storage.objstorage import ObjStorage
+from swh.storage.api.common import (BytesRequest, decode_request,
+ error_handler,
+ encode_data_server as encode_data)
DEFAULT_CONFIG = {
'storage_base': ('str', '/tmp/swh-storage/objects/'),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 17, 11:19 PM (2 d, 7 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3215547
Attached To
D24: Change the server's imports to absolute ones
Event Timeline
Log In to Comment