def _transformValue(value, policy, transform_type):
 t_kwargs = {}
 if ('Transform' in policy):
  if (transform_type in policy['Transform']):
   _policydata = _policy_info()
   if ((transform_type + 'Args') in policy['Transform']):
    t_kwargs = policy['Transform'][(transform_type + 'Args')]
   return getattr(_policydata, policy['Transform'][transform_type])(value, **t_kwargs)
  else:
   return value
 else:
  if ('Registry' in policy):
   if (value == '(value not set)'):
    return 'Not Defined'
  return value

def _transformValue ( value , policy , transform_type ) : t_kwargs = { } if ( 'Transform' in policy ) : if ( transform_type in policy [ 'Transform' ] ) : _policydata = _policy_info ( ) if ( ( transform_type + 'Args' ) in policy [ 'Transform' ] ) : t_kwargs = policy [ 'Transform' ] [ ( transform_type + 'Args' ) ] return getattr ( _policydata , policy [ 'Transform' ] [ transform_type ] ) ( value , ** t_kwargs ) else : return value else : if ( 'Registry' in policy ) : if ( value == '(value not set)' ) : return 'Not Defined' return value
helper function to transform the policy value into something that more closely matches how the policy is displayed in the gpedit gui .