The parent_id property.
        
        Args:
            value (string). the property value.
184264
def parent_id(self, value):
        
        if value == self._defaults['ai.operation.parentId'] and 'ai.operation.parentId' in self._values:
            del self._values['ai.operation.parentId']
        else:
            self._values['ai.operation.parentId'] = value
826031
def get_value(cls, value):
        ''''''
        if isinstance(value, (basestring, int)):
            value = cls.fetch_by(id=value)
        return value if isinstance(value, cls) else None
407097
def ver(self, value):
        
        if value == self._defaults['ver'] and 'ver' in self._values:
            del self._values['ver']
        else:
            self._values['ver'] = value
745216
def setValue(self, value):
        
        self.__value = projex.text.decoded(value) if isinstance(value, (str, unicode)) else value
1036503
private void updateParentsAlloc(int id) {
        while (id > 1) {
            int parentId = id >>> 1;
            byte val1 = value(id);
            byte val2 = value(id ^ 1);
            byte val = val1 < val2 ? val1 : val2;
            setValue(parentId, val);
            id = parentId;
        }
    }
910864
def set(self, id, value):
        
        return self.kv.set(self.key_name(id), value)
932258
def parent(id)
      hash = http_get(url('/resources/%s/parent', id))
      Resource.new(hash) if hash
    end
657604
public Object setProperty( Property propertyId,
                               Object value ) {
        if (value == null) {
            // Removing this property ...
            return nodeProperties != null ? nodeProperties.remove(propertyId) : null;
        }
        // Otherwise, we're adding the property
        if (nodeProperties == null) nodeProperties = new TreeMap<Property, Object>();
        return nodeProperties.put(propertyId, value);
    }
1182002
def type(self, value):
        
        if value not in list(defines.Types.values()):
            raise AttributeError
        self._type = value
145502
def token(self, value):
        
        if value and not isinstance(value, Token):
            value = Token(value)
        self._token = value
113991
def set(self, value, parse=False):
        
        self.value = self.parse(value) if parse else value
543542
def on_update(self, value, *args, **kwargs):
        
        parent_value = self._parent_min
        if self._max != self._min:
            sub_progress = (value - self._min) / (self._max - self._min)
            parent_value = self._parent_min + sub_progress * (self._parent_max - self._parent_min)
        self._parent.update(parent_value, *args, **kwargs)
1263246
def source(self, value):
        
        if not isinstance(value, tuple) or len(value) != 2:
            raise AttributeError
        self._source = value
231799
@Override
    public void setValue(Object value) {
        super.setValue(value);
        if (parent != null) {
            Object parentValue = parent.getValue();
            if (parentValue != null) {
                writeToObject(parentValue);
                parent.setValue(parentValue);
            }
        }
        if (value != null) {
            for (Property subProperty : subProperties) {
                subProperty.readFromObject(value);
            }
        }
    }
638743
function setNestedValue(data, field, value) {
        var fieldParts = _.isArray(field) ? field : field.split('.');

        // if no nesting, just set the value
        if (fieldParts.length === 1) {
            data[field] = _.isString(value) ? value.trim() : value;
            return;
        }

        // make sure the parent value exists
        data[fieldParts[0]] = data[fieldParts[0]] || {};

        // recursively call to go down a level
        setNestedValue(data[fieldParts[0]], fieldParts.slice(1, fieldParts.length), value);
    }
968077
def account_id(self, value):
    
    if type(value) is not str:
      raise TypeError("commit value must be string")
    self._account_id = value
1043509
def _set_element_property(parent_to_parse, element_path, prop_name, value):
    

    element = get_element(parent_to_parse)

    if element is None:
        return None

    if element_path and not element_exists(element, element_path):
        element = insert_element(element, 0, element_path)

    if not isinstance(value, string_types):
        value = u''

    setattr(element, prop_name, value)

    return element