On 04/26/2013 09:57 AM, Vincent Massol wrote:
Hi,
I'd like to add:
public interface ModelConfiguration
{
…
Syntax getDefaultSyntax();
}
And the configuration key would be:
model.defaultSyntax=xwiki/2.1
This also means deprecating CoreConfiguration.getDefaultDocumentSyntax() in oldcore
The goal is to have a clean way for getting the default syntax for documents for example
without having to use oldcore.
I need this to fix
http://jira.xwiki.org/browse/XWIKI-9074 for example.
WDYT?
I'm not sure the ModelConfiguration is the right place to add this. For
me, syntaxes are closer to rendering than to the data model, although I
agree that it's a property that affects the content of documents more
than it does the rendering engine.
My main concern is that so far there isn't any other method in the whole
model module that deals with syntaxes, so this would be the first thing
that ties the model to the XWiki rendering engine.
--
Sergiu Dumitriu
http://purl.org/net/sergiu