Did I find the right examples for you? yes no

All Samples(9)  |  Call(6)  |  Derive(0)  |  Import(3)

src/l/f/lfs-HEAD/customer/views.py   lfs(Download)
import lfs
from lfs.customer.forms import AddressForm
from lfs.customer.forms import EmailForm
from lfs.customer.forms import RegisterForm
from lfs.order.models import Order
def email(request, template_name="lfs/customer/email.html"):
    """Saves the email address from the data form.
    """
    if request.method == "POST":
        email_form = EmailForm(initial={"email" : request.user.email}, data=request.POST)
            return HttpResponseRedirect(reverse("lfs_my_email"))
    else:        
        email_form = EmailForm(initial={"email" : request.user.email})
 
    return render_to_response(template_name, RequestContext(request, {

src/d/j/django-lfs-HEAD/lfs/customer/views.py   django-lfs(Download)
from lfs.addresses.utils import AddressManagement
from lfs.customer import utils as customer_utils
from lfs.customer.forms import EmailForm, CustomerAuthenticationForm
from lfs.customer.forms import RegisterForm
from lfs.customer.utils import create_unique_username
def email(request, template_name="lfs/customer/email.html"):
    """Saves the email address from the data form.
    """
    if request.method == "POST":
        email_form = EmailForm(initial={"email": request.user.email}, data=request.POST)
                                                     msg=_(u"Your e-mail has been changed."))
    else:
        email_form = EmailForm(initial={"email": request.user.email})
 
    return render_to_response(template_name, RequestContext(request, {

src/d/j/django-lfs-0.7.7/lfs/customer/views.py   django-lfs(Download)
from lfs.core.models import Country
from lfs.customer import utils as customer_utils
from lfs.customer.forms import EmailForm
from lfs.customer.forms import RegisterForm
from lfs.customer.forms import AddressForm
def email(request, template_name="lfs/customer/email.html"):
    """Saves the email address from the data form.
    """
    if request.method == "POST":
        email_form = EmailForm(initial={"email": request.user.email}, data=request.POST)
            return HttpResponseRedirect(reverse("lfs_my_email"))
    else:
        email_form = EmailForm(initial={"email": request.user.email})
 
    return render_to_response(template_name, RequestContext(request, {