Wiki source code of TestDeleteSpace

Last modified by Thomas Mortagne on 2008/09/26 16:03

Show last authors
1 1 Delete Space
2
3 #if ($request.space)
4 #if ($request.confirm == "1")
5 #foreach ($item in $xwiki.getSpaceDocsName($request.space))
6 * Deleting $item $xwiki.getDocument("${request.space}.${item}").delete()
7 #end
8 #else
9 [Confirm delete space ${request.space}>$doc.fullName?space=${request.space}&confirm=1]
10
11 1.1 List of docs that will be deleted
12
13 #foreach ($item in $xwiki.getSpaceDocsName($request.space))
14 * $item
15 #end
16 #end
17 #else
18 {table}
19 Space | Action
20 #foreach($space in $xwiki.spaces)
21 $space | [Index>Main.SpaceIndex?space=${space}] - [Delete>$doc.fullName?space=${space}]
22 #end
23 {table}
24 #end