1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-01-09 21:17:52 +03:00

Added the ability to query the Group Policy dictionary

This commit is contained in:
Valery Sinelnikov 2023-10-06 12:01:06 +04:00
parent 16b5747620
commit 6bad9a331d

View File

@ -52,6 +52,8 @@ class Dconf_registry():
global_registry_dict = dict({_ReadQueue:{}})
global_registry_dict_win_style = dict()
__template_file = '/usr/share/dconf/user_mandatory.template'
_policies_path = 'Software/'
_policies_win_path = 'SOFTWARE/'
list_keys = list()
_info = dict()
@ -183,6 +185,11 @@ class Dconf_registry():
return True if self.global_registry_dict_win_style else None
@classmethod
def get_policies_from_dconf(self):
return self.get_dictionary_from_dconf(self._policies_path, self._policies_win_path)
@classmethod
def get_dictionary_from_dconf(self, *startswith_list):
output_dict = {}
@ -346,6 +353,7 @@ class Dconf_registry():
@classmethod
def wipe_hklm(self):
self.global_registry_dict = dict({self._ReadQueue:{}})
self.global_registry_dict_win_style = dict()
def filter_dict_keys(starting_string, input_dict):