Did I find the right examples for you? yes no

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

src/i/o/ionyweb-0.3/ionyweb/administration/views/website.py   ionyweb(Download)
from ionyweb.administration.utils import MESSAGES
from ionyweb import VERSION_INFO as IONYWEB_VERSION
from ionyweb.website.forms import (Website_AnalyticsForm, 
                                  Website_ReferencementForm,
                                  DomainWAForm)
    def get(self, request, pk=None):
        # Create the form
        if pk is None:
            form = DomainWAForm()
        else:
            site = get_object_or_404(request.website.ndds, pk=pk)
            form = DomainWAForm(instance=site)
    def put(self, request):
        form = DomainWAForm(self.DATA)
 
        if form.is_valid():
            site = form.save()
                                 (domain.domain, request.page.get_absolute_url())})
        else:
            form = DomainWAForm(request.POST, instance=domain)
 
            if form.is_valid():

src/i/o/ionyweb-HEAD/ionyweb/administration/views/website.py   ionyweb(Download)
from ionyweb.administration.utils import MESSAGES
from ionyweb import VERSION_INFO as IONYWEB_VERSION
from ionyweb.website.forms import (Website_AnalyticsForm, 
                                  Website_ReferencementForm,
                                  DomainWAForm)
    def get(self, request, pk=None):
        # Create the form
        if pk is None:
            form = DomainWAForm()
        else:
            site = get_object_or_404(request.website.ndds, pk=pk)
            form = DomainWAForm(instance=site)
    def put(self, request):
        form = DomainWAForm(self.DATA)
 
        if form.is_valid():
            site = form.save()
                                 (domain.domain, request.page.get_absolute_url())})
        else:
            form = DomainWAForm(request.POST, instance=domain)
 
            if form.is_valid():