diff options
-rw-r--r-- | TODO | 1 | ||||
-rw-r--r-- | sugar_network/resources/volume.py | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -1,3 +1,4 @@ +- use Context.dependencies while processing feed request - from service API, return 304 HTTP status w/o pinging remote SN server - check if moon icon is uptodate - reuse the same data dir for all SN resources for the same context diff --git a/sugar_network/resources/volume.py b/sugar_network/resources/volume.py index df43c26..c849570 100644 --- a/sugar_network/resources/volume.py +++ b/sugar_network/resources/volume.py @@ -288,11 +288,12 @@ class VolumeCommands(ad.VolumeCommands): """ enforce(document == 'context') + context = self.volume['context'].get(guid) versions, total = self.volume['implementation'].find( limit=1, order_by='-version', context=guid, layer=layer) enforce(total, ad.NotFound, 'No implementations') - result = [] + result = context['dependencies'] spec = [i for i in versions][0]['spec'] for dep in spec.get('*-*', {}).get('requires', {}).keys(): |