components/policy/tools/template_writers/policy_template_generator.py
def GetTemplateText(self, template_writer):
    '''Generates the text of the template from the arguments given
    to the constructor, using a given TemplateWriter.

    Args:
      template_writer: An object implementing TemplateWriter. Its methods
        are called here for each item of self._policy_data.

    Returns:
      The text of the generated template.
    '''
    # Create a copy, so that writers can't screw up subsequent writers.
    policy_data_copy = copy.deepcopy(self._policy_data)
    return template_writer.WriteTemplate(policy_data_copy)
Generates the text of the template from the arguments given
    to the constructor, using a given TemplateWriter.

    Args:
      template_writer: An object implementing TemplateWriter. Its methods
        are called here for each item of self._policy_data.

    Returns:
      The text of the generated template.
    
Generates the text of the template from the arguments given
to the constructor, using a given TemplateWriter.
Generates the text of the template from the arguments given to the constructor using a given TemplateWriter .
def GetTemplateText(self, template_writer):
    policy_data_copy = copy.deepcopy(self._policy_data)
    return template_writer.WriteTemplate(policy_data_copy)
def GetTemplateText ( self , template_writer ) : policy_data_copy = copy . deepcopy ( self . _policy_data ) return template_writer . WriteTemplate ( policy_data_copy )
Generates the text of the template from the arguments given
to the constructor, using a given TemplateWriter.
Generates the text of the template from the arguments given to the constructor using a given TemplateWriter .
'''Generates the text of the template from the arguments given
    to the constructor, using a given TemplateWriter.

    Args:
      template_writer: An object implementing TemplateWriter. Its methods
        are called here for each item of self._policy_data.

    Returns:
      The text of the generated template.
    ''' # Create a copy, so that writers can't screw up subsequent writers.
The text of the generated template.
The text of the generated template .
self
template_writer
An object implementing TemplateWriter. Its methods
are called here for each item of self._policy_data.
An object implementing TemplateWriter . Its methods are called here for each item of self . _policy_data .