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/)
