Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/f/l/flask-skeleton-HEAD/skeleton/modules/aaa/views.py   flask-skeleton(Download)
def profile():
    user_id = get_user_id(session_id = session['i'])
    user = User.query.filter_by(user_id=user_id).first_or_404()
    form = ProfileForm(obj=user)
    form.timezone.query = Timezone.query.order_by(Timezone.name)
        session['i'] = gen_session_id()
 
    form.timezone.query = Timezone.query.order_by(Timezone.name)
    if form.validate_on_submit():
        # Form validates, execute the registration pl function