Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9749808
D2105.id7052.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
663 B
Subscribers
None
D2105.id7052.diff
View Options
diff --git a/swh/core/api/__init__.py b/swh/core/api/__init__.py
--- a/swh/core/api/__init__.py
+++ b/swh/core/api/__init__.py
@@ -313,9 +313,10 @@
**kwargs):
super().__init__(*args, **kwargs)
+ self.backend_class = backend_class
if backend_class is not None:
if backend_factory is None:
- raise TypeError('Missing argument backend_factory')
+ backend_factory = backend_class
for (meth_name, meth) in backend_class.__dict__.items():
if hasattr(meth, '_endpoint_path'):
self.__add_endpoint(meth_name, meth, backend_factory)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 24, 6:16 PM (5 d, 2 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3230601
Attached To
D2105: api: make backend_factory argument of RPCServerApp() optional
Event Timeline
Log In to Comment