def _param_set(self, paramname, paramval): if self._param_get(paramname): if paramval is None: self._param_del(paramname) else: oldParam = Record.ID(self._params_id[paramname.upper()]) oldParam.content = paramval oldParam.write() self.update() elif paramval is not None: newParam = Record.EMPTY("object_parameter") newParam.refobjectid = self._object.objectid newParam.parametername = paramname.upper() newParam.content = paramval newParam.write() self.update()
def _param_del(self, paramname): if self._param_get(paramname): oldParam = Record.ID(self._params_id[paramname.upper()]) oldParam.delete() self.update()
def _flag_del(self, flagname): if self._flag_isset(flagname): oldFlag = Record.ID(self._flags[flagname.upper()]) oldFlag.delete() self.update()