cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gianugo Rabellino <gian...@apache.org>
Subject Re: Getting an X from a FOM_X
Date Thu, 07 Aug 2003 09:04:31 GMT
Reinhard Pötz wrote:

>>But now I have a need to add the "getRealPath" method to the context, 
>>only because Linotype uses it extensively and I wanted to 
>>port it to the 
>>FOM. Is there a particular reason why it shouldn't be there? 
> 
> I think because Stefano considered it as hack - see his comment:
> 
> /*
>  * Yeah, I know that hardwiring those is hacky as hell. But I'll try to
>  * fix this with link translation later on.
>  */
> var home = cocoon.context.getRealPath("/") + "samples/linotype/";

I think that actually Stefano was blaming hardwiring configuration info 
right in the code instead than getting them from somewhere, not the 
getRealPath stuff.

Ciao,

-- 
Gianugo Rabellino
Pro-netics s.r.l. -  http://www.pro-netics.com
Orixo, the XML business alliance - http://www.orixo.com
     (Now blogging at: http://blogs.cocoondev.org/gianugo/)


Mime
View raw message