From 8a0074fb54ed359961bc27d609ca9a065ed2cdb3 Mon Sep 17 00:00:00 2001 From: Andy Bavier Date: Tue, 9 Feb 2010 15:40:57 +0000 Subject: [PATCH] Add slice hrn to context --- sfa/managers/aggregate_manager_pl.py | 2 +- sfa/managers/aggregate_manager_vini.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sfa/managers/aggregate_manager_pl.py b/sfa/managers/aggregate_manager_pl.py index c006ef1c..c05f1c8a 100644 --- a/sfa/managers/aggregate_manager_pl.py +++ b/sfa/managers/aggregate_manager_pl.py @@ -197,7 +197,7 @@ the basic information needed in a dict. def fetch_context(slice_xrn, user_xrn, contexts): slice_hrn, type = urn_to_hrn(slice_xrn) user_hrn, type = urn_to_hrn(user_xrn) - base_context = {'sfa':{'user':{'hrn':user_hrn}}} + base_context = {'sfa':{'user':{'hrn':user_hrn}, 'slice':{'hrn':slice_hrn}}} return base_context def main(): diff --git a/sfa/managers/aggregate_manager_vini.py b/sfa/managers/aggregate_manager_vini.py index 1659e5e4..062a88a0 100644 --- a/sfa/managers/aggregate_manager_vini.py +++ b/sfa/managers/aggregate_manager_vini.py @@ -198,7 +198,7 @@ the basic information needed in a dict. def fetch_context(slice_xrn, user_xrn, contexts): slice_hrn, type = urn_to_hrn(slice_xrn) user_hrn, type = urn_to_hrn(user_xrn) - base_context = {'sfa':{'user':{'hrn':user_hrn}}} + base_context = {'sfa':{'user':{'hrn':user_hrn}, 'slice':{'hrn':slice_hrn}}} return base_context def main(): -- 2.43.0