SmilyOrg / moonshineproject

Automatically exported from code.google.com/p/moonshineproject
0 stars 0 forks source link

Validation pass for settings #115

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
For new projects the name can't contain spaces, and I assume some chars won't 
fly.

We need some kind of validation functionality for such cases.

Maybe it should be on a Setting level, or it should be part of the settings 
system.
Instant validation seems nicer to me, and we could easily pass such things to 
the settings constructors. Examples:

fileMustExist, minValue, maxValue, positiveValue, negativeValue, etc

Original issue reported on code.google.com by petterson.erik@gmail.com on 23 Jul 2010 at 2:55

GoogleCodeExporter commented 9 years ago
As discussed on IRC we could also just pass a StringValidator (IValidator) as 
found in Flex, given that we can display an error 'inline' and not allow 
settings to be saved until validation is passed.

Original comment by petterson.erik@gmail.com on 27 Jul 2010 at 4:17