components/policy/tools/template_writers/writers/adml_writer.py
def _AddBaseStrings(self):
    ''' Adds ADML "string" elements to the string-table that are referenced by
    the ADMX file but not related to any specific Policy-Group or Policy.
    '''
    self._AddString(self.config['win_supported_os'],
                    self.messages['win_supported_all']['text'])
    self._AddString(self.config['win_supported_os_win7'],
                    self.messages['win_supported_win7']['text'])
    categories = self.winconfig['mandatory_category_path'] + \
                  self.winconfig['recommended_category_path']
    strings = self.winconfig['category_path_strings']
    for category in categories:
      if (category in strings):
        # Replace {...} by localized messages.
        string = re.sub(r"\{(\w+)\}", \
                        lambda m: self.messages[m.group(1)]['text'], \
                        strings[category])
        self._AddString(category, string)
 Adds ADML "string" elements to the string-table that are referenced by
    the ADMX file but not related to any specific Policy-Group or Policy.
    
Adds ADML "string" elements to the string-table that are referenced by
the ADMX file but not related to any specific Policy-Group or Policy.
Adds ADML " string " elements to the string - table that are referenced by the ADMX file but not related to any specific Policy - Group or Policy .
def _AddBaseStrings(self):
    self._AddString(self.config['win_supported_os'],
                    self.messages['win_supported_all']['text'])
    self._AddString(self.config['win_supported_os_win7'],
                    self.messages['win_supported_win7']['text'])
    categories = self.winconfig['mandatory_category_path'] + \
                  self.winconfig['recommended_category_path']
    strings = self.winconfig['category_path_strings']
    for category in categories:
      if (category in strings):
        string = re.sub(r"\{(\w+)\}", \
                        lambda m: self.messages[m.group(1)]['text'], \
                        strings[category])
        self._AddString(category, string)
def _AddBaseStrings ( self ) : self . _AddString ( self . config [ 'win_supported_os' ] , self . messages [ 'win_supported_all' ] [ 'text' ] ) self . _AddString ( self . config [ 'win_supported_os_win7' ] , self . messages [ 'win_supported_win7' ] [ 'text' ] ) categories = self . winconfig [ 'mandatory_category_path' ] + self . winconfig [ 'recommended_category_path' ] strings = self . winconfig [ 'category_path_strings' ] for category in categories : if ( category in strings ) : string = re . sub ( r"\{(\w+)\}" , lambda m : self . messages [ m . group ( 1 ) ] [ 'text' ] , strings [ category ] ) self . _AddString ( category , string )
Adds ADML "string" elements to the string-table that are referenced by
the ADMX file but not related to any specific Policy-Group or Policy.
Adds ADML " string " elements to the string - table that are referenced by the ADMX file but not related to any specific Policy - Group or Policy .
''' Adds ADML "string" elements to the string-table that are referenced by
    the ADMX file but not related to any specific Policy-Group or Policy.
    ''' # Replace {...} by localized messages.
self