Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2012-10-04 17:37:30 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2012-10-04 17:37:30 (GMT)
commitc7b890f55410a345134b6ff7dfcea03f5d73868c (patch)
treea924fce013adf04623cee01bd5cb3155ab65a468
parentacb415ba8b7596ea9631f637274e8819ff3464b1 (diff)
Return Context.dependencies from deplist command
-rw-r--r--TODO1
-rw-r--r--sugar_network/resources/volume.py3
2 files changed, 3 insertions, 1 deletions
diff --git a/TODO b/TODO
index 72eef8e..71210c1 100644
--- a/TODO
+++ b/TODO
@@ -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():