diff options
author | Aleksey Lim <alsroot@sugarlabs.org> | 2012-10-04 17:37:30 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@sugarlabs.org> | 2012-10-04 17:37:30 (GMT) |
commit | c7b890f55410a345134b6ff7dfcea03f5d73868c (patch) | |
tree | a924fce013adf04623cee01bd5cb3155ab65a468 | |
parent | acb415ba8b7596ea9631f637274e8819ff3464b1 (diff) |
Return Context.dependencies from deplist command
-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(): |