On 16/07/2010 11:07, Aladdin wrote: > Hi everyone, > > I'm trying to set a default template with an extension. > Here is the xcu configuration file : http://www.pastie.org/1045423 > The configuration works on 2.4, 3.0.1, 3.1.1 but it didn't work on > 3.2.X. > > Is there any change in the path settings API on OOo 3.2.X, i > t seems %origin% didn't work anymore ?
let me guess, you get some kind of error message when opening templates? but the template does open anyway? this is caused by the new RDF metadata import in OOo 3.2. the problem is that %origin% expands to a non-hierarchical URI (i.e. one without a path). but the RDF import needs a hierarchical URI to work. that is why you get the error message[1]. [ actually other parts of the import probably also need a hierarchical URI, but they parse the URI with some ancient deprecated code that doesn't check that, so it happens to work. ] the solution is to use a different kind of URI for content that is included in extensions; this will be available in OOo 3.3. see here: http://api.openoffice.org/servlets/ReadMsg?list=dev&msgNo=22475 "vnd.sun.star.extension:// URLs providing access to content within deployed extensions" for OOo 3.2.x i'm not aware of a workaround for the problem. well, other than ignoring the error message... regards, michael [1] and i have no idea how to produce a meaningful error message instead of the current incomprehensible gibberish, because the import filter is limited to encode its error condition in a 32bit integer :( -- "C: the PDP-11 assembler that thinks it's a language C++: the PDP-11 assembler that thinks it's an object system" -- JWZ --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
