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_group(request):
    if 'secretariaat' not in request.user.cached_groups_names:
        raise PermissionDenied
    if request.method == 'POST':
        form = AddGroupForm(request.POST)
            return HttpResponseRedirect(reverse('group-by-name', args=(nm,)))
    else:
        form = AddGroupForm()
    return render_to_response('leden/secr_add_group.html', {'form': form},
            context_instance=RequestContext(request))