Re: FormEncode form validators

2007-10-20 Thread Ian Bicking
iain duncan wrote: On Wed, 2007-17-10 at 13:20 -0500, Ian Bicking wrote: FormEncode is overdue for a release, but before that a request: there has been some mention that FormEncode should ship more useful form validators. For instance, FieldsMatch is an example of something currently

Re: FormEncode form validators

2007-10-19 Thread Christoph Haas
On Thu, Oct 18, 2007 at 10:28:52PM -0400, Yannick Gingras wrote: Christoph Haas [EMAIL PROTECTED] writes: I could contribute validators for: - valid IPv4 network/address specifications (e.g. 10.0.0.0/8 or 192.168.25.1 but not 1.2.3.4/123) Here is what I use for IPv4 addr ranges:

Re: FormEncode form validators

2007-10-19 Thread iain duncan
On Wed, 2007-17-10 at 13:20 -0500, Ian Bicking wrote: FormEncode is overdue for a release, but before that a request: there has been some mention that FormEncode should ship more useful form validators. For instance, FieldsMatch is an example of something currently shipped, but about the

Re: FormEncode form validators

2007-10-18 Thread Yannick Gingras
Christoph Haas [EMAIL PROTECTED] writes: I could contribute validators for: - valid IPv4 network/address specifications (e.g. 10.0.0.0/8 or 192.168.25.1 but not 1.2.3.4/123) Here is what I use for IPv4 addr ranges: from formencode import validators import iplib class

FormEncode form validators

2007-10-17 Thread Ian Bicking
FormEncode is overdue for a release, but before that a request: there has been some mention that FormEncode should ship more useful form validators. For instance, FieldsMatch is an example of something currently shipped, but about the only example. Other examples would be helpful. Probably

Re: FormEncode form validators

2007-10-17 Thread Christoph Haas
On Wed, Oct 17, 2007 at 01:20:07PM -0500, Ian Bicking wrote: FormEncode is overdue for a release, but before that a request: there has been some mention that FormEncode should ship more useful form validators. For instance, FieldsMatch is an example of something currently shipped, but

Re: FormEncode form validators

2007-10-17 Thread Ian Bicking
Christoph Haas wrote: I could contribute validators for: - valid IPv4 network/address specifications (e.g. 10.0.0.0/8 or 192.168.25.1 but not 1.2.3.4/123) - valid hardware (MAC) address (e.g. 01:51:a5:92:be:08) Those would be useful, I think. - range of integers (strange I didn't