Exemplo n.º 1
0
Arquivo: api.py Projeto: zz2/webchat
def notice_create(values):
    notice = Notice()
    notice.update(values)
    session.add(notice)
    session.commit()
    return notice
Exemplo n.º 2
0
Arquivo: api.py Projeto: zz2/webchat
def channel_create(values):
    channel = Channel()
    channel.update(values)
    session.add(channel)
    session.commit()
    return channel
Exemplo n.º 3
0
Arquivo: api.py Projeto: zz2/webchat
def obj_commit(obj):
    session.add(obj)
    session.commit()