Did I find the right examples for you? yes no

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

src/i/o/ionyweb-0.3/ionyweb/administration/views/users.py   ionyweb(Download)
from djangorestframework import status
from ionyweb.administration.utils import MESSAGES
from ionyweb.authentication.forms import EditCurrentUser
from django.template.loader import render_to_string
from django.template import RequestContext
    def get(self, request):
        userform = EditCurrentUser(request.user)
        passform = PasswordChangeForm(request.user)
        html = render_to_string('administration/users/current-user.html',
                                {'userform': userform,
    def post(self, request):
 
        if 'old_password' in request.POST and request.POST['old_password'] == "":
            userform = EditCurrentUser(request.user, request.POST)
 
 
        else:
            userform = EditCurrentUser(request.user, request.POST)
            passform = PasswordChangeForm(request.user, data=request.POST)
 

src/i/o/ionyweb-HEAD/ionyweb/administration/views/users.py   ionyweb(Download)
from djangorestframework import status
from ionyweb.administration.utils import MESSAGES
from ionyweb.authentication.forms import EditCurrentUser
from django.template.loader import render_to_string
from django.template import RequestContext
    def get(self, request):
        userform = EditCurrentUser(request.user)
        passform = PasswordChangeForm(request.user)
        html = render_to_string('administration/users/current-user.html',
                                {'userform': userform,
    def post(self, request):
 
        if 'old_password' in request.POST and request.POST['old_password'] == "":
            userform = EditCurrentUser(request.user, request.POST)
 
 
        else:
            userform = EditCurrentUser(request.user, request.POST)
            passform = PasswordChangeForm(request.user, data=request.POST)