Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
form validation example doesn't run as posted?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
idm  
View profile  
 More options Sep 15 2009, 2:38 am
From: idm <iandennismil...@gmail.com>
Date: Mon, 14 Sep 2009 23:38:44 -0700 (PDT)
Local: Tues, Sep 15 2009 2:38 am
Subject: form validation example doesn't run as posted?
Hi all,

I was having some trouble with the form validation code here:

http://bitbucket.org/jespern/django-piston/wiki/Documentation#form-va...

I think the examples might omit:

from piston.util import validate

Is that right?  Here's an example in context:

from piston.handler import BaseHandler
from piston.utils import validate
from crm.models import Report
from crm.forms import ReportForm

class ReportsHandler(BaseHandler):
    allowed_methods = ('POST')

    @validate(ReportForm)
    def create(self, request):
       ...

Either that, or I'm missing something more fundamental here...  but it
appears to be working now.

Thanks,
Ian


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Idan Gazit  
View profile  
 More options Sep 15 2009, 3:55 am
From: Idan Gazit <i...@pixane.com>
Date: Tue, 15 Sep 2009 10:55:00 +0300
Subject: Re: form validation example doesn't run as posted?

On Sep 15, 2009, at 9:38 AM, idm wrote:

> I think the examples might omit:

> from piston.util import validate

> Is that right?

Yep.

  smime.p7s
3K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »