Hi,
I would like to know why OneToManyRelations are not as configurable as MultipleOptionDescriptions. It would be cool to get #beSortable, #beOrdered, #beRemoveable... Is it just a problem of time or something difficult to implement ? If you take the Magritte exercices, a person manager is developed. The problem is: why is the PersonManager a WAComponent ? Won't it be more interesting if we get a Model and not a component ? The model would have just one description ; something like: descriptionPersons ^ (MAOneToManyRelationDescription auto: 'persons' label: 'Persons') classes: (Array with: MAPersonModel); default: Array new; beOrdered; "to get a 'up' and a 'down' command on each line" beRemoveable; "to get a 'remove' command on each line" beEditable; "to get a 'edit' command on each line" yourself Bye _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki _______________________________________________ Smallwiki mailing list [hidden email] http://impara.de/mailman/listinfo/smallwiki |
> I would like to know why OneToManyRelations are not as configurable as
> MultipleOptionDescriptions. It would be cool to get #beSortable, > #beOrdered, #beRemoveable... Is it just a problem of time or something > difficult to implement ? It is just that I didn't need it so far, but if you do so, please feel free to add the missing functionality and commit your changes to the public repository. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki _______________________________________________ Smallwiki mailing list [hidden email] http://impara.de/mailman/listinfo/smallwiki |
Lukas Renggli a écrit :
>> I would like to know why OneToManyRelations are not as configurable as >> MultipleOptionDescriptions. It would be cool to get #beSortable, >> #beOrdered, #beRemoveable... Is it just a problem of time or something >> difficult to implement ? > > It is just that I didn't need it so far, but if you do so, please > feel free to add the missing functionality and commit your changes to > the public repository. I've just committed the 'ordered' part. - ToManyRelationDescriptions can now be ordered. - OneToManyComponents get a 'up' and 'down' command to change the order. Please have a look and tell me if I did something wrong! -- Damien Cassou _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki _______________________________________________ Smallwiki mailing list [hidden email] http://impara.de/mailman/listinfo/smallwiki |
New commit:
- You can now specify if your ToManyRelationDescriptions contain elements that can be removed or edited. - OneToManycomponents displays #edit and #remove only when necessary. Bye -- Damien Cassou _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki _______________________________________________ Smallwiki mailing list [hidden email] http://impara.de/mailman/listinfo/smallwiki |
In reply to this post by Damien Cassou-3
> I've just committed the 'ordered' part.
> - ToManyRelationDescriptions can now be ordered. > - OneToManyComponents get a 'up' and 'down' command to change the > order. > > Please have a look and tell me if I did something wrong! Looks cool, nothing to complain about, I will continue to work on your modifications ;-) The only thing: Where are the tests? Lukas -- Lukas Renggli http://www.lukas-renggli.ch _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki _______________________________________________ Smallwiki mailing list [hidden email] http://impara.de/mailman/listinfo/smallwiki |
Lukas Renggli a écrit :
>> I've just committed the 'ordered' part. >> - ToManyRelationDescriptions can now be ordered. >> - OneToManyComponents get a 'up' and 'down' command to change the >> order. >> >> Please have a look and tell me if I did something wrong! > > Looks cool, nothing to complain about, I will continue to work on > your modifications ;-) > > The only thing: Where are the tests? Ooops, I'm sorry. Please don't write them for me, I will. -- Damien Cassou _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki _______________________________________________ Smallwiki mailing list [hidden email] http://impara.de/mailman/listinfo/smallwiki |
In reply to this post by Lukas Renggli-2
Lukas wrote:
> The only thing: Where are the tests? They are commited. -- Damien Cassou _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki _______________________________________________ Smallwiki mailing list [hidden email] http://impara.de/mailman/listinfo/smallwiki |
Free forum by Nabble | Edit this page |