components/policy/tools/template_writers/writers/template_writer.py
def WriteTemplate(self, template):
    '''Writes the given template definition.

    Args:
      template: Template definition to write.

    Returns:
      Generated output for the passed template definition.
    '''
    self.messages = template['messages']
    self.Init()
    template['policy_definitions'] = \
        self.PreprocessPolicies(template['policy_definitions'])
    self.BeginTemplate()
    self.WritePolicies(template['policy_definitions'])
    self.EndTemplate()

    return self.GetTemplateText()
Writes the given template definition.

    Args:
      template: Template definition to write.

    Returns:
      Generated output for the passed template definition.
    
Writes the given template definition.
Writes the given template definition .
def WriteTemplate(self, template):
    self.messages = template['messages']
    self.Init()
    template['policy_definitions'] = \
        self.PreprocessPolicies(template['policy_definitions'])
    self.BeginTemplate()
    self.WritePolicies(template['policy_definitions'])
    self.EndTemplate()
    return self.GetTemplateText()
def WriteTemplate ( self , template ) : self . messages = template [ 'messages' ] self . Init ( ) template [ 'policy_definitions' ] = self . PreprocessPolicies ( template [ 'policy_definitions' ] ) self . BeginTemplate ( ) self . WritePolicies ( template [ 'policy_definitions' ] ) self . EndTemplate ( ) return self . GetTemplateText ( )
Writes the given template definition.
Writes the given template definition .
'''Writes the given template definition.

    Args:
      template: Template definition to write.

    Returns:
      Generated output for the passed template definition.
    '''
Generated output for the passed template definition.
Generated output for the passed template definition .
self
template
Template definition to write.
Template definition to write .