tools/bdconfig/lib/google_hadoop/bdconfig_lib/xml_configuration.py
def SetProperty(self, name, value, description=None, clobber=True):
    """Sets value and optionally description of property with given name.

    Args:
      name: The name of the property to set.
      value: The value to set the property to.
      description: (Optional) The description to give the property.
      clobber: Whether or not to overwrite existing properties. True by default.

    Returns:
      Whether or not the value was set.
    """
    if name in self._properties:
      if not clobber:
        logging.warn(
            'Property "{0}" is already set. Not clobbering.'.format(name))
        return False
      property = self._properties[name]
    else:
      property_element = self._document.createElement('property')
      property = self._Property(property_element, name=name)
      self._PutProperty(property)
    property.value = value
    if description:
      property.description = description
    return True
Sets value and optionally description of property with given name.

    Args:
      name: The name of the property to set.
      value: The value to set the property to.
      description: (Optional) The description to give the property.
      clobber: Whether or not to overwrite existing properties. True by default.

    Returns:
      Whether or not the value was set.
    
Sets value and optionally description of property with given name.
Sets value and optionally description of property with given name .
def SetProperty(self, name, value, description=None, clobber=True):
    if name in self._properties:
      if not clobber:
        logging.warn(
            'Property "{0}" is already set. Not clobbering.'.format(name))
        return False
      property = self._properties[name]
    else:
      property_element = self._document.createElement('property')
      property = self._Property(property_element, name=name)
      self._PutProperty(property)
    property.value = value
    if description:
      property.description = description
    return True
def SetProperty ( self , name , value , description = None , clobber = True ) : if name in self . _properties : if not clobber : logging . warn ( 'Property "{0}" is already set. Not clobbering.' . format ( name ) ) return False property = self . _properties [ name ] else : property_element = self . _document . createElement ( 'property' ) property = self . _Property ( property_element , name = name ) self . _PutProperty ( property ) property . value = value if description : property . description = description return True
Sets value and optionally description of property with given name.
Sets value and optionally description of property with given name .
"""Sets value and optionally description of property with given name.

    Args:
      name: The name of the property to set.
      value: The value to set the property to.
      description: (Optional) The description to give the property.
      clobber: Whether or not to overwrite existing properties. True by default.

    Returns:
      Whether or not the value was set.
    """
Whether or not the value was set.
Whether or not the value was set .
self
name
The name of the property to set.
The name of the property to set .
value
The value to set the property to.
The value to set the property to .
description
(Optional) The description to give the property.
( Optional ) The description to give the property .
clobber
Whether or not to overwrite existing properties. True by default.
Whether or not to overwrite existing properties . True by default .