

@expose('/test_manual_commit')
def test_manual_commit():
    from uliweb.orm import Begin, Commit, Rollback
    Begin()
    Blog = functions.get_model('blog')
    b = Blog(title='test_add', content='test_add')
    b.save()
    Commit()
    return 'ok'

dataset/ETHPy150Open limodou/uliweb/test/test_multidb/apps/blog/views.py test_manual_commit/original