[xwiki-dev] [vote] doc.isTemplate

Sergiu Dumitriu sergiu.dumitriu at gmail.com
Thu Jan 4 00:30:50 CET 2007


On 1/4/07, Vincent Massol <vincent at massol.net> wrote:
>
>  Hi Sergiu,
>
>
>
> *From:* Sergiu Dumitriu [mailto:sergiu.dumitriu at gmail.com]
> *Sent:* mercredi 3 janvier 2007 22:49
> *To:* xwiki-dev at objectweb.org
> *Subject:* [xwiki-dev] [vote] doc.isTemplate
>
>
>
> Hi,
>
> I often see queries like "select something where doc.fullName !=
> XWiki.SomeTemplate", which is definitely not nice. I would like to add a
> new property to the document class, which indicates if the document is a
> template.
>
> With the 1.0 approaching I wonder if that's required now and whether this
> could be postponed to 1.1. I'm also worried this could break something.
> WDYT?
>

It shouldn't break anything, it just adds something new. It wasn't planned
for too soon, if I'll run out of bugs until the RC, I'll write this too. I
know other things are more important now.

Also, we should provide an api to select documents containing a certain type
> of objects, like:
>
> $xwiki.searchDocumentsWithObjects("XWiki.ArticleClass", [extraquery],
> [count, start])
>
> This should behave like the current searchDocuments, but it also writes
> the from and where parts of the query that tie the right type of object to
> the document, and filters out the template documents.
>
> +1, I can see the need for this.
>
> Thanks
> -Vincent
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xwiki.org/pipermail/devs/attachments/20070104/5f847801/attachment.htm 


More information about the devs mailing list