components/policy/tools/generate_extension_admx.py
def _AddString(self, string_id, text):
    '''
    Adds a string with ID |string_id| to the strings table in the ADML doc or
    reuses an existing string.

    '''
    string_id = self._ToId(string_id)
    if string_id in self._strings_seen:
      assert text == self._strings_seen[string_id]
    else:
      self._strings_seen[string_id] = text
      string_elem = self._AddElement(self._string_table_elem, 'string')
      self._SetAttribute(string_elem, 'id', string_id)
      string_elem.appendChild(self._adml_doc.createTextNode(text))

    Adds a string with ID |string_id| to the strings table in the ADML doc or
    reuses an existing string.

    
Adds a string with ID |string_id| to the strings table in the ADML doc or
reuses an existing string.
Adds a string with ID |string_id| to the strings table in the ADML doc or reuses an existing string .
def _AddString(self, string_id, text):
    string_id = self._ToId(string_id)
    if string_id in self._strings_seen:
      assert text == self._strings_seen[string_id]
    else:
      self._strings_seen[string_id] = text
      string_elem = self._AddElement(self._string_table_elem, 'string')
      self._SetAttribute(string_elem, 'id', string_id)
      string_elem.appendChild(self._adml_doc.createTextNode(text))
def _AddString ( self , string_id , text ) : string_id = self . _ToId ( string_id ) if string_id in self . _strings_seen : assert text == self . _strings_seen [ string_id ] else : self . _strings_seen [ string_id ] = text string_elem = self . _AddElement ( self . _string_table_elem , 'string' ) self . _SetAttribute ( string_elem , 'id' , string_id ) string_elem . appendChild ( self . _adml_doc . createTextNode ( text ) )
Adds a string with ID |string_id| to the strings table in the ADML doc or
reuses an existing string.
Adds a string with ID |string_id| to the strings table in the ADML doc or reuses an existing string .
'''
    Adds a string with ID |string_id| to the strings table in the ADML doc or
    reuses an existing string.

    '''
self
string_id
text