(self, key, value)
Set key-value pair under the CORP_SETUP tree.

    Args:
      key: String, key to add
      value: string/integer if single value, dict if multiple values.

    Returns:
      Boolean, True if successful.

    Raises:
      SysconfigError: On failure (SCDynamicStore* does return False
      on failure, we don't get any better errors).
Set key-value pair under the CORP_SETUP tree.
Set key - value pair under the CORP_SETUP tree .
def SetCorpSetupKey(self, key, value):
    """Set key-value pair under the CORP_SETUP tree.

    Args:
      key: String, key to add
      value: string/integer if single value, dict if multiple values.

    Returns:
      Boolean, True if successful.

    Raises:
      SysconfigError: On failure (SCDynamicStore* does return False
      on failure, we don't get any better errors).
    """
    long_key = '%s%s' % (CORP_SETUP, key)
    if SCDynamicStoreCopyValue(self.store, long_key) is not None:
      key_set = SCDynamicStoreSetValue(self.store, long_key, value)
      if key_set:
        logging.debug('Setting %s to value %s', long_key, value)
        return True
      else:
        raise SysconfigError('Failed setting %s with value %s' % (
            long_key, value))

    else:
      add = SCDynamicStoreAddValue(self.store, long_key, value)
      if add:
        logging.debug('Adding %s with value %s', long_key, value)
        return True
      else:
        raise SysconfigError('Failed adding %s with value %s' % (
            long_key, value))
def SetCorpSetupKey ( self , key , value ) : long_key = '%s%s' % ( CORP_SETUP , key ) if SCDynamicStoreCopyValue ( self . store , long_key ) is not None : key_set = SCDynamicStoreSetValue ( self . store , long_key , value ) if key_set : logging . debug ( 'Setting %s to value %s' , long_key , value ) return True else : raise SysconfigError ( 'Failed setting %s with value %s' % ( long_key , value ) ) else : add = SCDynamicStoreAddValue ( self . store , long_key , value ) if add : logging . debug ( 'Adding %s with value %s' , long_key , value ) return True else : raise SysconfigError ( 'Failed adding %s with value %s' % ( long_key , value ) )