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

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

src/f/l/flaskbb-HEAD/flaskbb/forum/views.py   flaskbb(Download)
def track_topic(topic_id, slug=None):
    topic = Topic.query.filter_by(id=topic_id).first_or_404()
    current_user.track_topic(topic)
    current_user.save()
    return redirect(topic.url)
def untrack_topic(topic_id, slug=None):
    topic = Topic.query.filter_by(id=topic_id).first_or_404()
    current_user.untrack_topic(topic)
    current_user.save()
    return redirect(topic.url)

src/b/r/breezeminder-HEAD/breezeminder/views/user.py   breezeminder(Download)
        else:
            current_user.set_password(form.password.data)
            current_user.save()
            flash('Password changed successfully', 'success')
        return redirect(url_for('user.password'))

src/f/l/flaskbb-HEAD/flaskbb/user/views.py   flaskbb(Download)
    if form.validate_on_submit():
        current_user.theme = form.theme.data
        current_user.save()
 
        flash("Your settings have been updated!", "success")
def change_password():
    form = ChangePasswordForm()
    if form.validate_on_submit():
        current_user.password = form.new_password.data
        current_user.save()
def change_email():
    form = ChangeEmailForm(current_user)
    if form.validate_on_submit():
        current_user.email = form.new_email.data
        current_user.save()
def change_user_details():
    form = ChangeUserDetailsForm()
    if form.validate_on_submit():
        form.populate_obj(current_user)
        current_user.save()

src/l/m/lmfdb-HEAD/lmfdb/users/main.py   lmfdb(Download)
def set_info():
    for k, v in request.form.iteritems():
        setattr(current_user, k, v)
    current_user.save()
    flask.flash("Thank you for updating your details!")