Re: formencode.FancyValidator

2010-02-06 Thread gazza
gt; > Add this to your controller. > > > def order(self): > >      return render('order_GET.mako') > > > On Feb 5, 2:58 pm, gazza wrote: > > > > Almost there but no cigar. I am having a small problem seeing the > > > Invalid mes

Re: formencode.FancyValidator

2010-02-06 Thread gazza
 It uses > that action to render the form for the intial GET. (i think) > > Add this to your controller. > > def order(self): >      return render('order_GET.mako') > > On Feb 5, 2:58 pm, gazza wrote: > > > > > Almost there but no cigar. I am

Re: formencode.FancyValidator

2010-02-05 Thread Chris
uses that action to render the form for the intial GET. (i think) Add this to your controller. def order(self): return render('order_GET.mako') On Feb 5, 2:58 pm, gazza wrote: > Almost there but no cigar. I am having a small problem seeing the > Invalid message being

Re: formencode.FancyValidator

2010-02-05 Thread gazza
Almost there but no cigar. I am having a small problem seeing the Invalid message being fired: class ValidateDates(formencode.FancyValidator): messages = dict(invalid="Bad date") def validate_python(self,field_dict,state): print "%s" % field_dict['combo

Re: formencode.FancyValidator

2010-02-05 Thread gazza
erstanding how I can pass multiple values at > >> once to the fancy validator i.e month and day > > >> class fooFancyValidator(formencode.FancyValidator): > >>         messages = { > >>                   'invaliddate' : _("Please select a valid

Re: formencode.FancyValidator

2010-02-04 Thread Ian Wilson
multiple values at >> once to the fancy validator i.e month and day >> >> class fooFancyValidator(formencode.FancyValidator): >>         messages = { >>                   'invaliddate' : _("Please select a valid date") >>          

Re: formencode.FancyValidator

2010-02-04 Thread gazza
fooFancyValidator(formencode.FancyValidator): >         messages = { >                   'invaliddate' : _("Please select a valid date") >           } > >          def _to_python(self,value,state): >                if (not value): >                   raise

Re: formencode.FancyValidator

2010-02-04 Thread gazza
Hello, I am having a problem understanding how I can pass multiple values at once to the fancy validator i.e month and day class fooFancyValidator(formencode.FancyValidator): messages = { 'invaliddate' : _("Please select a valid date")

Re: formencode.FancyValidator

2010-02-04 Thread gazza
Much appreciated Graham, I will have a gander. Cheers, Garyc On Feb 4, 10:05 am, Graham Higgins wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 4 Feb 2010, at 15:41, gazza wrote: > > > I am trying to find a simple example to create a bespoke validator. > > Could you somebody be so

Re: formencode.FancyValidator

2010-02-04 Thread Graham Higgins
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 4 Feb 2010, at 15:41, gazza wrote: I am trying to find a simple example to create a bespoke validator. Could you somebody be so kind and point me to an article to accomplish this in pylons? Not an article but a few examples, FWTW (some shamel

formencode.FancyValidator

2010-02-04 Thread gazza
Hello, I am trying to find a simple example to create a bespoke validator. Could you somebody be so kind and point me to an article to accomplish this in pylons? Much appreciated, Garyc -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post

Re: filtering input with formencode.FancyValidator

2008-06-29 Thread rcs_comp
On Jun 29, 10:34 pm, noflashlight <[EMAIL PROTECTED]> wrote: > I've been trying to write my own validators using the > formencode.FancyValidator class. What I am trying to accomplish is to > validate some input as well as modify the input by stripping html > tags. I'

filtering input with formencode.FancyValidator

2008-06-29 Thread noflashlight
I've been trying to write my own validators using the formencode.FancyValidator class. What I am trying to accomplish is to validate some input as well as modify the input by stripping html tags. I'm not sure if formencode was designed to accomplish both of these tasks. Here is a simp