diff options
author | ahmed.helmy <ahmad.helmy@orange.com> | 2017-12-15 13:44:06 +0200 |
---|---|---|
committer | ahmed.helmy <ahmad.helmy@orange.com> | 2017-12-15 13:44:06 +0200 |
commit | d21665aca18b98e81ba5dc251d2a39fcbe68446d (patch) | |
tree | 24013d4cd209a49f208d3192112ae0da209164ee /moonv4/moon_utilities | |
parent | 40144450de989888ab6f0957dd455a2a32d70da7 (diff) |
add documentation for add target function
Change-Id: I6dd21f218f15a6fa89df2b63ae7cd2d9e3da1cc3
Signed-off-by: ahmed.helmy <ahmad.helmy@orange.com>
Diffstat (limited to 'moonv4/moon_utilities')
-rw-r--r-- | moonv4/moon_utilities/moon_utilities/security_functions.py | 6 |
1 files changed, 6 insertions, 0 deletions
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"] |