Adds an opinion to the opinion layer
        @type opinion_obj: L{Copinion}
        @param opinion_obj: the opinion object
968534
def add_opinion(self,opinion_obj):
        
        if self.opinion_layer is None:
            self.opinion_layer = Copinions()
            self.root.append(self.opinion_layer.get_node())
        self.opinion_layer.add_opinion(opinion_obj)
273010
def addProxyObject(self, obj, proxied):
        
        self.proxied_objects[id(obj)] = proxied
        self.proxied_objects[id(proxied)] = obj
1079076
def add_term(self,term_obj):
        
        if self.term_layer is None:
            self.term_layer = Cterms(type=self.type)
            self.root.append(self.term_layer.get_node())
        self.term_layer.add_term(term_obj)
464302
def add_argument(self, dest, nargs=1, obj=None):
        
        if obj is None:
            obj = dest
        self._args.append(Argument(dest=dest, nargs=nargs, obj=obj))
672358
public void addEvaluation(Objective obj, Evaluation eval, double weight){
        evaluations.put(obj, eval);
        // update weighted sum
        weightedSum += weight * eval.getValue();
    }
578157
function addOperator(obj, field, operator, operand) {
    if(obj[field] === undefined) {
        obj[field] = {}
    }

    obj[field][operator] = operand
}
981541
def add_object(self, obj):
        

        # delegate to SchemaType object
        schema_generator = self._get_generator_for_object(obj)
        schema_generator.add_object(obj)

        # return self for easy method chaining
        return self
284418
def addcomment(self, order_increment_id,
            status, comment=None, notify=False):
        
        if comment is None:
            comment = ""
        return bool(self.call(
                'sales_order.addComment',
                [order_increment_id, status, comment, notify]
            )
        )
929728
def add_object(o)
      if !@objects.include?(o)
        index = @objects.index do |object|
          object.z > o.z
        end
        if index
          @objects.insert(index, o)
        else
          @objects.push(o)
        end
        true
      else
        false
      end
    end
366906
def add_factuality(self,my_fact):
        
        if self.factuality_layer is None:
            self.factuality_layer = Cfactualities()
            self.root.append(self.factuality_layer.get_node())
        self.factuality_layer.add_factuality(my_fact)
1264240
def add(self, effect=None, act=None, obj=None,
            policy=None, policies=None):
        
        if policies is not None:
            for p in policies:
                self.add(policy=p)
        elif policy is not None:
            for e, a, o in policy:
                self.add(e, a, o)
        else:
            objc = obj.components if obj is not None else []
            self.tree[act.components + objc] = effect
506746
def question_default_add_related_pks(self, obj):
        """"""
        if not hasattr(obj, '_choice_pks'):
            obj._choice_pks = list(obj.choices.values_list('pk', flat=True))
928723
def add_object(self, obj):
        
        if obj.top_level_object:
            if isinstance(obj, DotNetNamespace):
                self.namespaces[obj.name] = obj
        self.objects[obj.id] = obj
1081891
def set_comment(self, obj, cursor):
        
        if isinstance(obj, typedesc.T):
            obj.comment = cursor.brief_comment
        return
513118
@Override
  public void add(Object obj) {
    lock.writeLock().lock();
    try {
      populated = true;
      this.queueActionLocked(DeltaType.Added, obj);
    } finally {
      lock.writeLock().unlock();
    }
  }
26339
def add(self, name, obj=None):
        """"""
        if obj:
            text = '\n::\n\n' + indent(str(obj))
        else:
            text = views.view(name, self.dstore)
        if text:
            title = self.title[name]
            line = '-' * len(title)
            self.text += '\n'.join(['\n\n' + title, line, text])
944374
def is_commentable(obj_or_class):
    
    if isinstance(obj_or_class, type):
        return issubclass(obj_or_class, Commentable)

    if not isinstance(obj_or_class, Commentable):
        return False

    if obj_or_class.id is None:
        return False

    return True