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
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---