From d21665aca18b98e81ba5dc251d2a39fcbe68446d Mon Sep 17 00:00:00 2001 From: "ahmed.helmy" Date: Fri, 15 Dec 2017 13:44:06 +0200 Subject: add documentation for add target function Change-Id: I6dd21f218f15a6fa89df2b63ae7cd2d9e3da1cc3 Signed-off-by: ahmed.helmy --- moonv4/moon_utilities/moon_utilities/security_functions.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'moonv4/moon_utilities') diff --git a/moonv4/moon_utilities/moon_utilities/security_functions.py b/moonv4/moon_utilities/moon_utilities/security_functions.py index f55620b6..849f5110 100644 --- a/moonv4/moon_utilities/moon_utilities/security_functions.py +++ b/moonv4/moon_utilities/moon_utilities/security_functions.py @@ -294,6 +294,12 @@ class Context: # context["pdp_set"][meta_rule_id]["target"][act_cat].append(assign) # # context["pdp_set"][meta_rule_id]["target"].update(result) + """build target from meta_rule + + Target is dict of categories as keys ; and the value of each category will be + a list of assignments + + """ def __add_target(self, meta_rule_id): result = dict() _subject = self.__current_request["subject"] -- cgit 1.2.3-korg