diff options
Diffstat (limited to 'grit/format/policy_templates/writers/admx_writer.py')
-rw-r--r-- | grit/format/policy_templates/writers/admx_writer.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/grit/format/policy_templates/writers/admx_writer.py b/grit/format/policy_templates/writers/admx_writer.py index 0d4394b..d657834 100644 --- a/grit/format/policy_templates/writers/admx_writer.py +++ b/grit/format/policy_templates/writers/admx_writer.py @@ -32,6 +32,7 @@ class ADMXWriter(xml_formatted_writer.XMLFormattedWriter): Args: name: Name of the referenced ADML string. ''' + name = name.replace('.', '_') return '$(string.' + name + ')' def _AdmlStringExplain(self, name): @@ -39,6 +40,7 @@ class ADMXWriter(xml_formatted_writer.XMLFormattedWriter): Args: name: Name of the referenced ADML explanation. ''' + name = name.replace('.', '_') return '$(string.' + name + '_Explain)' def _AdmlPresentation(self, name): @@ -166,6 +168,7 @@ class ADMXWriter(xml_formatted_writer.XMLFormattedWriter): attributes = { 'id': name, 'valueName': name, + 'maxLength': '1000000', } self.AddElement(parent, 'text', attributes) @@ -349,6 +352,9 @@ class ADMXWriter(xml_formatted_writer.XMLFormattedWriter): ''' dom_impl = minidom.getDOMImplementation('') self._doc = dom_impl.createDocument(None, 'policyDefinitions', None) + if self._GetChromiumVersionString() is not None: + self.AddComment(self._doc.documentElement, self.config['build'] + \ + ' version: ' + self._GetChromiumVersionString()) policy_definitions_elem = self._doc.documentElement policy_definitions_elem.attributes['revision'] = '1.0' |