diff options
Diffstat (limited to 'sugar_network/resources/volume.py')
-rw-r--r-- | sugar_network/resources/volume.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sugar_network/resources/volume.py b/sugar_network/resources/volume.py index a8f732b..440551a 100644 --- a/sugar_network/resources/volume.py +++ b/sugar_network/resources/volume.py @@ -215,11 +215,6 @@ class Commands(object): def _mixin_blobs(self, request, result): requested_guid = request.get('guid') - if not requested_guid: - reply = request.get('reply') - if reply and 'guid' not in reply: - return - if node.static_url.value: prefix = node.static_url.value elif hasattr(request, 'environ'): @@ -237,6 +232,8 @@ class Commands(object): for name, value in props.items(): if not isinstance(value, ad.PropertyMeta): continue + enforce(guid, 'No way to get BLOB urls if %r was not ' + 'in %r parameter', 'guid', 'reply') props[name] = value.url( default='/'.join(['', document, guid, name]) + postfix, prefix=prefix) |