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

All Samples(5)  |  Call(4)  |  Derive(0)  |  Import(1)

src/k/n/kninfra-HEAD/kn/leden/views.py   kninfra(Download)
from django.template import RequestContext
 
from kn.leden.forms import ChangePasswordForm, AddUserForm, AddGroupForm
from kn.leden.auth import login_or_basicauth_required
from kn.leden.utils import find_name_for_user
def ik_chpasswd(request):
    errl = []
    if request.method == 'POST':
        form = ChangePasswordForm(request.POST)
        if form.is_valid():
                errl.extend(e.args)
    else:
        form = ChangePasswordForm()
    errl.extend(form.non_field_errors())
    errstr = humanized_enum(errl)
def ik_chpasswd_villanet(request):
    errl = []
    if request.method == 'POST':
        form = ChangePasswordForm(request.POST)
        if form.is_valid():
                errl.extend(e.args)
    else:
        form = ChangePasswordForm()
    errl.extend(form.non_field_errors())
    errstr = humanized_enum(errl)