Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
def dosomething(self, a, b, submit = None):
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
  4 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
 
illume  
View profile  
 More options Jun 23, 7:31 pm
From: illume <ren...@gmail.com>
Date: Tue, 23 Jun 2009 16:31:19 -0700 (PDT)
Local: Tues, Jun 23 2009 7:31 pm
Subject: def dosomething(self, a, b, submit = None):
Hello,

does anyone know how to get rid of the submit=None part?

def dosomething(self, a, b, submit = None):

Since I want forms to pass through a submit field, but for the
cherrypy side to ignore it.

It would be good if I could enable this for a whole application, so no
more 'submit=None' in its methods.

Any ideas on how to get around this?

cheers,


    Reply to author    Forward  
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.
fumanchu  
View profile  
 More options Jun 23, 8:52 pm
From: fumanchu <fuman...@aminus.org>
Date: Tue, 23 Jun 2009 17:52:39 -0700 (PDT)
Local: Tues, Jun 23 2009 8:52 pm
Subject: Re: def dosomething(self, a, b, submit = None):

illume wrote:
> does anyone know how to get rid of the submit=None part?

> def dosomething(self, a, b, submit = None):

> Since I want forms to pass through a submit field, but for the
> cherrypy side to ignore it.

> It would be good if I could enable this for a whole application, so no
> more 'submit=None' in its methods.

> Any ideas on how to get around this?

def pop_params(params):
    for p in params:
        cherrypy.request.params.pop(p, None)
cherrypy.tools.pop_params = cherrypy.Tool('before_handler',
pop_params)

[/]
tools.pop_params.on = True
tools.pop_params.params = ['submit']

Robert Brewer
fuman...@aminus.org


    Reply to author    Forward  
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.
Sylvain Hellegouarch  
View profile  
 More options Jun 24, 2:13 am
From: Sylvain Hellegouarch <s...@defuze.org>
Date: Wed, 24 Jun 2009 08:13:28 +0200
Local: Wed, Jun 24 2009 2:13 am
Subject: Re: [cherrypy-users] Re: def dosomething(self, a, b, submit = None):
fumanchu a écrit :

Isn't CherryPy cool? :)

- Sylvain


    Reply to author    Forward  
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.
illume  
View profile  
 More options Jun 25, 2:54 am
From: illume <ren...@gmail.com>
Date: Wed, 24 Jun 2009 23:54:31 -0700 (PDT)
Local: Thurs, Jun 25 2009 2:54 am
Subject: Re: def dosomething(self, a, b, submit = None):
awesome :)  thanks.

On Jun 24, 10:52 am, fumanchu <fuman...@aminus.org> wrote:


    Reply to author    Forward  
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 »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google