Lines Matching full:policy

8 from autotest_lib.client.cros.enterprise.policy import Policy as Policy  unknown
22 # policy group is "configured" to represent what the "displayed" policy
66 @param visual: bool, If the extension policy provided is what should be
71 # If the policy is configured (ie this policy group object represents)
93 Create and the policy object, and set it in the corresponding group.
95 @param policy_type: str of the policy type. Must be:
97 @param policies: dict of policy values.
98 @param group: str, group key for the Policy object setter.
156 for policy, value in policies.items():
159 cleaned[policy] = self._jsonify(policy, value)
162 def _jsonify(self, policy, value): argument
163 """Jsonify policy if its a dict or list that is not kiosk policy."""
166 # Kiosk Policy, aka "account", is the only policy not formatted.
169 (policy != 'device_local_accounts.account')):
176 Create a policy object from Policy.Policy().
178 @param name: str, name of the policy
179 @param data: data value of the policy
180 @param group: optional, group of the policy.
182 @returns: Policy object, reperesenting the policy args provided.
184 policy_obj = Policy()
195 for policy in self.chrome:
197 self.chrome[policy].get_policy_as_dict())
203 for policy in ext_group:
204 pol_as_dict = ext_group[policy].get_policy_as_dict()
208 for policy in self.local:
210 self.local[policy].get_policy_as_dict())
232 Override the == to check a policy group object vs another.
235 A policy is missing from self is missing in other,
236 when the policy is not None.
238 If the policy valus in self are are not equal to the other
263 policy is missing from other policy object
264 policy objects != (per the Policy object __eq__ override)
267 if the policy value is None