summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-10-12 12:36:33 +0300
committerLars Wirzenius <liw@liw.fi>2017-10-12 12:36:33 +0300
commit2849ecf2d640810a1a4b368346519cc39d93424b (patch)
tree99a109571a090806a54099324e4c939dc82cd3d0
parent5d2e5bf12d93954f512cf34a6f4dcaa4146f2a6c (diff)
downloadqvisqve-2849ecf2d640810a1a4b368346519cc39d93424b.tar.gz
Fix: drop unnecssary parts, fix callback name
-rw-r--r--qvarn/subresource_router.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/qvarn/subresource_router.py b/qvarn/subresource_router.py
index b53d2f7..343ee4a 100644
--- a/qvarn/subresource_router.py
+++ b/qvarn/subresource_router.py
@@ -21,7 +21,6 @@ class SubresourceRouter(qvarn.Router):
def __init__(self):
super().__init__()
- self._store = None
self._parent_coll = None
self._subpath = None
@@ -31,9 +30,6 @@ class SubresourceRouter(qvarn.Router):
def set_parent_collection(self, parent_coll):
self._parent_coll = parent_coll
- def set_object_store(self, store):
- self._store = store
-
def get_routes(self):
rt = self._parent_coll.get_type()
path = '{}/<id>/{}'.format(rt.get_path(), self._subpath)
@@ -58,7 +54,7 @@ class SubresourceRouter(qvarn.Router):
return qvarn.no_such_resource_response(str(e))
return qvarn.ok_response(obj)
- def put_subpath_callback(self, content_type, body, *args, **kwargs):
+ def _put_subresource(self, content_type, body, *args, **kwargs):
if content_type != 'application/json':
raise qvarn.NotJson(content_type)