Doug Chestnut wrote:
Jörn Nettingsmeier wrote:
Doug Chestnut wrote:
Andreas Hartmann wrote:
Jörn Nettingsmeier schrieb:
hi everyone!
i just found out about the method
String[] getTemplateIds
in org.apache.lenya.cms.publication.Publication.
does that mean we support or plan to support multiple inheritance?
Actually it should work
(see PublicationTemplateManagerImpl.getPublications(publication)).
But this is of course subject to discussion.
Do you consider this concept valuable or even necessary?
>
For environments with many publications (university) it is very
valuable as the diagram at the top of this page shows:
http://lenya.apache.org/docs/1_4/reference/publication-templating/index.html
I use the default pub as a template for my own generic pub, then use
my generic pub as a template for my pubs in production. This way I
can utilize new functionality as it develops in the default pub,
override functionality/design for all my pubs, and customize
functionality for specific publications.
I can make due without it (multiple inheritance) but it would be a
bummer.
i think we use the term differently.
of course i want to keep the ability to have
C inherits from B inherits from A
(inheritance a la java)
Cool
what i don't want is
C inherits from both B and A, where A and B are unrelated.
(inheritance with mixins)
I didn't realize this was implemented. Hmm, nothing I currently use ;)
neither did i until i saw that getTemplateIds returns String[]. it might
also be a list of parent, grandparent etc, but my tests showed it's not.
anyway, this seems to be the only place in the code where such a feature
is hinted at... probably a mistake.
regards,
jörn
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]