Example #1
0
    def _add_presence(self, name):
        cti_presence = CtiPresences()
        cti_presence.name = name

        self.add_me(cti_presence)

        return cti_presence.id
Example #2
0
    def _add_presence(self, name):
        cti_presence = CtiPresences()
        cti_presence.name = name

        self.add_me(cti_presence)

        return cti_presence.id
    def _add_presence(self, name):
        cti_presence = CtiPresences()
        cti_presence.name = name

        self.session.begin()
        self.session.add(cti_presence)
        self.session.commit()
        return cti_presence.id