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

All Samples(3)  |  Call(2)  |  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 secr_add_user(request):
    if 'secretariaat' not in request.user.cached_groups_names:
        raise PermissionDenied
    if request.method == 'POST':
        form = AddUserForm(request.POST)
                    args=(nm,)))
    else:
        form = AddUserForm()
    return render_to_response('leden/secr_add_user.html',
            {'form': form},