I would say the solution is to always consider this as an attachment,
except in a specific view where we always consider it as a page.
We could for example only allow page creation in the spaces area.
Also I don't think in the spaces area we should show child pages.
Ludovic
Asiri Rathnayake wrote:
Hi All,
Consider a PUT request on following resource:
http://<host>/xwiki-webdav/root/spaces/Main/WebHome/spacename.pagename
How can we determine whether "spacename.pagename" is a child page of
Main.WebHome or at attachment of Main.WebHome ?
This is not the only place this problem occurs. I'm working on a workaround
for this problem but i would like to have a better mechanism if it's
possible.
Note :- searching existing documents / attachments won't help because this
is a request to create a new resource.
Thanks.
- Asiri
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Ludovic Dubost
Blog:
http://blog.ludovic.org/
XWiki:
http://www.xwiki.com
Skype: ldubost GTalk: ldubost