[Magritte] OneToManyRelation and Reports

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[Magritte] OneToManyRelation and Reports

Damien Cassou-3
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
Reply | Threaded
Open this post in threaded view
|

Re: [Magritte] OneToManyRelation and Reports

Lukas Renggli-2
> 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
Reply | Threaded
Open this post in threaded view
|

Re: [Magritte] OneToManyRelation and Reports

Damien Cassou-3
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
Reply | Threaded
Open this post in threaded view
|

Re: [Magritte] OneToManyRelation and Reports

Damien Cassou-3
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
Reply | Threaded
Open this post in threaded view
|

Re: [Magritte] OneToManyRelation and Reports

Lukas Renggli-2
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
Reply | Threaded
Open this post in threaded view
|

Re: [Magritte] OneToManyRelation and Reports

Damien Cassou-3
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
Reply | Threaded
Open this post in threaded view
|

Re: [Magritte] OneToManyRelation and Reports

Damien Cassou-3
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