Example #1
0
File: api.py Project: zz2/webchat
def notice_create(values):
    notice = Notice()
    notice.update(values)
    session.add(notice)
    session.commit()
    return notice
Example #2
0
File: api.py Project: zz2/webchat
def channel_create(values):
    channel = Channel()
    channel.update(values)
    session.add(channel)
    session.commit()
    return channel
Example #3
0
File: api.py Project: zz2/webchat
def obj_commit(obj):
    session.add(obj)
    session.commit()