Hi All,

I'm wondering how I should achieve this;

So, I have a url field, if someone types "www.example.com", I want that to end up as "http://www.example.com"; when it's stored, and I want a validator to make sure that's the case.

However, if someone types "www.example.com", I don't want validation to fail, I just want the 'http://' to be added.

My initial implementation of this was just to do that prefix adding in the post-validation code, but of course, now I've added validation, it fails if the 'http://' is missing.

So, is there any way I can solve these requirements using deform as-is?

Even if it is, how would people feel about adding a "filter" stage, post deserialisation, pre validation, for things like this?

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
           - http://www.simplistix.co.uk

--
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.

Reply via email to