On Fri, Apr 26, 2013 at 4:56 PM, Sergiu Dumitriu <[email protected]> wrote:
> 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.

Same as Sergiu, I'm not sure if that's the right module but it's not
stronger than a -0.

> --
> Sergiu Dumitriu
> http://purl.org/net/sergiu
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs



--
Thomas Mortagne
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to