On Tue, May 31, 2011 at 00:29, Vincent Massol
<vincent(a)massol.net> wrote:
On May 30, 2011, at 9:57 PM, Sergiu Dumitriu wrote:
On 05/30/2011 09:25 PM, Thomas Mortagne wrote:
> On Mon, May 30, 2011 at 21:11, Thomas Mortagne
> <thomas.mortagne(a)xwiki.com> wrote:
>> Hi dev,
>>
>> I would like to introduce class property entity type and related
>> reference and syntax separator.
>>
>> For the separator syntax I propose to use the same thing as object
>> separator since you can't have both in the same reference and it's
>> always a pain to find a new separator.
>
> FYI it means wiki:space.page^property
>
>>
>> Note that I'm inly talking about class property and not class since
>> class reference is exactly the same thing as document reference I
>> don't think we really need to have a specific one.
Currently there can be only one class in a document, but for a while the
question whether this is going to be valid in the future as well has
been floating around.
So, a prerequisite vote is:
In the new model, can a document contain more than one class?
I don't think we should limit ourselves (I don't see any reason, do you see
one?). BTW the new model I started has the ability to have several classes per document.
Well why dot but then what does it mean in term of reference ?
wiki:space.page^classname.property ?
The issue is what to put as "classname" element currently since this
part is useless and for a long time given the place of the new model
in the priority list. It could be possible to support a shortcut
version as wiki:space.page^property but then it would be a first and
would be a special case in serializer/resolver. But I can't see how to
support such a shortcut for class reference unless by using an even
more special case where "if hitting a dot it mean there is no class
name and so we are actually looking at a document name".