Have you looked at the source code? I think there might be an example or at
least more info in the doc string.
I think you might need to define cc_type and cc_number in your validator
schema as well.
It's been awhile since I've used it.
On Tue, Jul 8, 2008 at 2:12 PM, Wyatt Baldwin <[EMAIL PROTECTED]>
wrote:
>
> Does anyone out there have an example of using FormEncode's
> CreditCardValidator in a FormEncode schema? I'm using the schema with
> the Pylons validate decorator.
>
> My Schema currently looks something like this:
>
> class EnterInfoValidator(Schema):
> first_name = String(not_empty=True)
> last_name = String(not_empty=True)
> cc_validator = CreditCardValidator('cc_type', 'cc_number')
>
> The problem I'm having is that I want ``cc_type`` and ``cc_number`` to
> end up in the ``form_result`` dict, but I don't see how to do that.
>
> Any ideas?
>
> -wlb
>
> >
>
--
http://twitter.com/rpf
http://rickflosi.blogspot.com/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---