components/policy/tools/template_writers/writers/admx_writer.py
def _AddIntPolicy(self, parent, policy):
    '''Generates ADMX elements for an Int-Policy and adds them to the passed
    parent node.
    '''
    #default max value for an integer
    max = 2000000000
    min = 0
    if self.PolicyHasRestrictions(policy):
      schema = policy['schema']
      if 'minimum' in schema and schema['minimum'] >= 0:
        min = schema['minimum']
      if 'maximum' in schema and schema['maximum'] >= 0:
        max = schema['maximum']
    assert type(min) == int
    assert type(max) == int
    attributes = {
        'id': policy['name'],
        'valueName': policy['name'],
        'maxValue': str(max),
        'minValue': str(min),
    }
    self.AddElement(parent, 'decimal', attributes)
Generates ADMX elements for an Int-Policy and adds them to the passed
    parent node.
    
Generates ADMX elements for an Int-Policy and adds them to the passed
parent node.
Generates ADMX elements for an Int - Policy and adds them to the passed parent node .
def _AddIntPolicy(self, parent, policy):
    max = 2000000000
    min = 0
    if self.PolicyHasRestrictions(policy):
      schema = policy['schema']
      if 'minimum' in schema and schema['minimum'] >= 0:
        min = schema['minimum']
      if 'maximum' in schema and schema['maximum'] >= 0:
        max = schema['maximum']
    assert type(min) == int
    assert type(max) == int
    attributes = {
        'id': policy['name'],
        'valueName': policy['name'],
        'maxValue': str(max),
        'minValue': str(min),
    }
    self.AddElement(parent, 'decimal', attributes)
def _AddIntPolicy ( self , parent , policy ) : max = 2000000000 min = 0 if self . PolicyHasRestrictions ( policy ) : schema = policy [ 'schema' ] if 'minimum' in schema and schema [ 'minimum' ] >= 0 : min = schema [ 'minimum' ] if 'maximum' in schema and schema [ 'maximum' ] >= 0 : max = schema [ 'maximum' ] assert type ( min ) == int assert type ( max ) == int attributes = { 'id' : policy [ 'name' ] , 'valueName' : policy [ 'name' ] , 'maxValue' : str ( max ) , 'minValue' : str ( min ) , } self . AddElement ( parent , 'decimal' , attributes )
Generates ADMX elements for an Int-Policy and adds them to the passed
parent node.
Generates ADMX elements for an Int - Policy and adds them to the passed parent node .
'''Generates ADMX elements for an Int-Policy and adds them to the passed
    parent node.
    ''' #default max value for an integer
self
parent
policy