Magritte Validation Error
Ramon Leon
rleon at insario.com
Sun Nov 27 23:38:48 MET 2005
Hi
I'm playing with the latest Magritte and generating some forms for a couple objects to test out how relationships between objects works, I'm running into some trouble. At first I thought it was something wrong with my code.
descriptionProject
^(MASingleOptionDescription selector: #project label: 'Project' priority: 10)
reference: MAClassDescription new;
options: (MADynamicObject on: [ TMProject repository asArray]);
beRequired; beSorted ;
yourself
but after writing a lenghy email explaining the issue, it struck me what it might be, so I popped into MADescription and commented out the code for validateKind: anObject. Turns out that fixed my issue. Validation was failing because the objects I had in a single option description were proxies coming from goods, and they fail validateKind:, has someone else run into this? Guess I'll just leave it commented out for now until there's a fix, or I figure out what I'm doing wrong.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 3818 bytes
Desc: not available
Url : http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20051127/b0a96eda/attachment.bin
More information about the SmallWiki
mailing list