Esempio n. 1
0
 def OnElementsMatching(self, regex):
     for attr in self.attrs:
         lib.CallAttrBuilderPolicyFunction(
             self.policy_id,
             self.policy_method.encode(),
             attr.encode(),
             self.attr_value_function.encode(),
             self.attr_value_filter.encode(),
             b"OnElementsMatching",
             regex.encode(),
         )
Esempio n. 2
0
 def Globally(self):
     for attr in self.attrs:
         lib.CallAttrBuilderPolicyFunction(
             self.policy_id,
             self.policy_method.encode(),
             attr.encode(),
             self.attr_value_function.encode(),
             self.attr_value_filter.encode(),
             b"Globally",
             b"",
         )
Esempio n. 3
0
 def OnElements(self, *elements):
     for attr in self.attrs:
         for elem in elements:
             lib.CallAttrBuilderPolicyFunction(
                 self.policy_id,
                 self.policy_method.encode(),
                 attr.encode(),
                 self.attr_value_function.encode(),
                 self.attr_value_filter.encode(),
                 b"OnElements",
                 elem.encode(),
             )