[Kss-devel] Validators

Kai Diefenbach usenet at diefenba.ch
Wed Sep 5 13:33:36 CEST 2007


Hi Godefroid,

Godefroid Chapelle <gotcha at bubblenet.be>
wrote:

> This list is for the development of KSS itself, can you move those mails
> to plone-dev ?

Yes, of course. For this thread, I let it on this list, if you don't
mind?

> > If I leave a field (with tab) with an invalid value it displays no error
> > (in contrary to leave a required filed blank). If I try to save it, the
> > error is displayed as expected. As this behaviour is not consistent, it
> > is not really bad, as the field is going to have valid data if the
> > object is saved.
> > 
> > IMO worse is the fact, that one is able to change the field with the
> > inline edit and save it with a invalid value without complaining. 

> Can you give more details ?

I have a ATField with an validator e.g. "isURL". If I leave this field
within the base_edit.pt I would expect that I get an error, If I haven't
entered a valid URL (the same way Plone complains if I let a required
field empty). But I don't get one. 

If I save the whole template Plone complains about the invalid URL, like
it used to for earlier versions.

Not nice but not a problem until here, because I'm not able to store the
object with an invalid value.

If I use the default inline edit feature of the base_view template now,
I can click on this field and edit it. The problem is that I can now
change the field's content to an invalid URL and save it without
complaining. The object is now stored within a invalid URL.

Kai

-- 
Kai Diefenbach - http://diefenba.ch
iqplusplus - http://iqpp.de



More information about the Kss-devel mailing list