Change
API behavior on multi-typed topics
Issue description
When a topic is instance of two or more types, how should a tobject behave?
Developer comments
Currently i see two possible solutions:
* you have to specify when getting a tobject how you want to get it
* try to resolve method calls against all types, currently it is only resolved against the first one
This problem surfaced since 'topic type' was made a role type. When creating a topic menu %get_all_instances% is called on the "topic menu"-topic type (should just iterate with %Tobject::all% instead). Since the tobjects primary type is role type the method call fails.
I tried to resolve method calls against all types, but then decided to revert since i did not want to introduce uncertainty currently.
Rejection comment
Multityping is too rare to invest time in this.
|
Work sessions
Start |
2014-03-06T07:20:18
|
End |
2014-03-06T10:20:18
|
Participant |
Robert Cerny
|
|
We are sorry
This page cannot be displayed in your browser. Use Firefox, Opera, Safari, or Chrome instead.