Joern Nettingsmeier wrote:
> Jann Forrer wrote:
>> Andreas Hartmann wrote:
>>> Joern Nettingsmeier schrieb:
>>>> hi everyone !
>>>>
>>>> getting rid of the bogus multiple-inheritance has an impact on the
>>>> publication interface. (quote of the relevant discussion below, for
>>>> your
>>>> reference)
>>>>
>>>> basically, i see these options:
>>>>
>>>> 1. leave public String[] getTemplateIds() as it is, and return a
>>>> one-element String[].
>>> This would have the advantage that we can "upgrade" to multiple
>>> inheritance later on without changing the API. Does anyone see
>>> the necessity to use more than one template?
>>>
>>>
>> Not yet, but I could imagine such usecases e.g.
>>
>>              -------------------
>>             |  University Home  |
>>              -------------------
>>               |         |
>>      ------------       |      ------------
>>     | Faculty A  |       -----|  Faculty B |
>>      ------------              ------------
>>         |    |
>>         |     ----------
>>         |               |
>>   ------------     ------------
>>  | Institute A |  | Institute B |
>>   -------------    -------------
>>
>> This is also mentioned in:
>> http://lenya.apache.org/docs/1_4/reference/publication-templating/index.html
>>
>>
>> Or do i misunderstand something?
> 
> yes.
> the case you described is single inheritance. every publication as
> exactly one template. i'm not trying to change that.
> 
> however, the syntax
> <templates>
>   <template id="foo"/>
>   <template id="bar"/>
> </template>
> 
> 
> implies that publications could inherit from more than one predecessor:
> 
>               -------------------
>              |  University Home  |
>               -------------------
>                |         |
>       ------------       |      ------------
>      | Faculty A  |       -----|  Faculty B |
>       ------------              ------------
>          |    |                       0
>          |     ----------   00000000000
>          |               |  0
>    ------------     ------------
>   | Institute A |  | Institute B |
>    -------------    -------------
> 
> in this case, institute b would inherit both from faculty a and b.
> 
> part of the code implies we can do that, but nobody has ever tried it,
> and the fallback sources wouldn't know what to do with a situation like
> that...
>

Ah ok i understand :-) So

> 3. rip out getTemplateIds() entirely, breaking backwards compatibility,
> and introduce public String getTemplateId()

is ok for me.

Jann


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to