def _insert_dialaction(self, incall_id, action, actionarg1): dialaction = Dialaction() dialaction.event = 'answer' dialaction.category = 'incall' dialaction.categoryval = str(incall_id) dialaction.action = action dialaction.actionarg1 = actionarg1 dialaction.actionarg2 = '' dialaction.linked = 1 self.add_me(dialaction)
def _insert_dialaction(self, incall_id, action, actionarg1): dialaction = Dialaction() dialaction.event = "answer" dialaction.category = "incall" dialaction.categoryval = str(incall_id) dialaction.action = action dialaction.actionarg1 = actionarg1 dialaction.actionarg2 = "" dialaction.linked = 1 self.session.begin() self.session.add(dialaction) self.session.commit()
def _insert_dialaction(self, incall_id, action, actionarg1): dialaction = Dialaction() dialaction.event = 'answer' dialaction.category = 'incall' dialaction.categoryval = str(incall_id) dialaction.action = action dialaction.actionarg1 = actionarg1 dialaction.actionarg2 = '' dialaction.linked = 1 self.session.begin() self.session.add(dialaction) self.session.commit()