Add slice HRN to sfatables request context for VINI aggregate manager
authorAndy Bavier <acb@cs.princeton.edu>
Tue, 8 Dec 2009 20:18:17 +0000 (20:18 +0000)
committerAndy Bavier <acb@cs.princeton.edu>
Tue, 8 Dec 2009 20:18:17 +0000 (20:18 +0000)
sfa/managers/aggregate_manager_vini.py
sfa/rspecs/aggregates/rspec_manager_vini.py

index 4fb8882..cba6957 100644 (file)
@@ -192,7 +192,8 @@ to refer to "contexts", which is the information that sfatables is requesting. B
 return the basic information needed in a dict.
 """
 def fetch_context(slice_hrn, user_hrn, contexts):
-    base_context = {'sfa':{'user':{'hrn':user_hrn}}}
+    base_context = {'sfa':{'user':{'hrn':user_hrn},
+                           'slice':{'hrn':slice_hrn}}}
     return base_context
 
 def main():
index 4fb8882..cba6957 100644 (file)
@@ -192,7 +192,8 @@ to refer to "contexts", which is the information that sfatables is requesting. B
 return the basic information needed in a dict.
 """
 def fetch_context(slice_hrn, user_hrn, contexts):
-    base_context = {'sfa':{'user':{'hrn':user_hrn}}}
+    base_context = {'sfa':{'user':{'hrn':user_hrn},
+                           'slice':{'hrn':slice_hrn}}}
     return base_context
 
 def main():