[squeak-dev] Magritte: Validation deprecated?
Udo Schneider
Udo.Schneider at homeaddress.de
Thu Dec 4 17:21:04 UTC 2008
All,
I'm currently playing a bit with Magritte and I can !"§"&%! myself for
not take a look at it earlier.
One thing I'm not sure about at the moment is validation. It seems that
validation code is not called when saving values.
I'm having a description like this:
descriptionEmail
^ MAStringDescription new autoAccessor: 'name';
group: 'Internet';
beEditable;
beSearchable;
addCondition: [:value | self halt. (value includes: $@)
and: [(value subStrings: $@) size = 2]]
labelled: 'Invalid E-Mail';
comment: 'Please enter the name of the object';
default: 'Unnamed';
label: 'E-Mail'
If I call the model using "model asMorph addButtons; addWindow ;
callInWorld" and save a bogus E-Mail the breakpoint is not reached.
Are Conditions still supported?
CU,
Udo
More information about the Squeak-dev
mailing list
|