You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Jörn Nettingsmeier <po...@uni-duisburg.de> on 2006/01/20 15:47:01 UTC

bug? template entries in publication.xconf...

hi *!


when i create a new publication in lenya 1.4 based on a template (which 
is in turn based on the default pub), i find these entries in 
publication.xconf:

  <templates>
     <template id="default"/>
     <template id="mytemplate"/>
   </templates>

this causes the new publication to inherit everything from the default 
pub. is this behaviour intentional?
and why is this "multiple inheritance" used at all? the fallback to the 
default publication should be implicit, since "mytemplate" is derived 
from it.

can anyone clarify?

jörn


-- 
"Open source takes the bullshit out of software."
	- Charles Ferguson on TechnologyReview.com

--
Jörn Nettingsmeier, EDV-Administrator
Institut für Politikwissenschaft
Universität Duisburg-Essen, Standort Duisburg
Mail: pol-admin@uni-duisburg.de, Telefon: 0203/379-2736

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: bug? template entries in publication.xconf...

Posted by Doug Chestnut <dh...@virginia.edu>.
I believe this is just a bug in the default Instantiator.

My pubs that use templated template pubs are simply referenced like:
   <templates>
      <template id="mytemplate"/>
   </templates>

--Doug

Jörn Nettingsmeier wrote:
> hi *!
> 
> 
> when i create a new publication in lenya 1.4 based on a template (which 
> is in turn based on the default pub), i find these entries in 
> publication.xconf:
> 
>  <templates>
>     <template id="default"/>
>     <template id="mytemplate"/>
>   </templates>
> 
> this causes the new publication to inherit everything from the default 
> pub. is this behaviour intentional?
> and why is this "multiple inheritance" used at all? the fallback to the 
> default publication should be implicit, since "mytemplate" is derived 
> from it.
> 
> can anyone clarify?
> 
> jörn
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org