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
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
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
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
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
multiple values at
>> once to the fancy validator i.e month and day
>>
>> class fooFancyValidator(formencode.FancyValidator):
>> messages = {
>> 'invaliddate' : _("Please select a valid date")
>>
fooFancyValidator(formencode.FancyValidator):
> messages = {
> 'invaliddate' : _("Please select a valid date")
> }
>
> def _to_python(self,value,state):
> if (not value):
> raise
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")
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
-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
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
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'
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
13 matches
Mail list logo