Mercurial > pub > Impl
comparison _test/Resources/sample.xml @ 221:e997e6fbac0b
sync: working on resources schema
author | sergey |
---|---|
date | Fri, 24 Aug 2012 16:24:14 +0400 |
parents | 5c82c15b25b1 |
children | 84a6382b49c8 |
comparison
equal
deleted
inserted
replaced
220:5c82c15b25b1 | 221:e997e6fbac0b |
---|---|
1 <?xml version="1.0" encoding="UTF-8"?> | 1 <?xml version="1.0" encoding="UTF-8"?> |
2 <resources xmlns="http://implab.org/schemas/resources" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://implab.org/schemas/resources resources.xsd "> | 2 <resources xmlns="http://implab.org/schemas/resources" |
3 <root> | 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
4 <get> | 4 xsi:schemaLocation="http://implab.org/schemas/resources resources.xsd "> |
5 <bind text="model"/> | 5 <root> |
6 <result xsi:type="redirectResult"> | 6 <get> |
7 <locator> | 7 <bind text="model" /> |
8 <var name="id" text="model.id"/> | 8 </get> |
9 <var name="parent" text="parent.location"/> | 9 |
10 <template>$parent/$id</template> | 10 <resource name="projects"> |
11 </locator> | 11 <contract> |
12 </result> | 12 <get> |
13 </get> | 13 <bind text="parent.model.projects" /> |
14 </root> | 14 </get> |
15 <typeMap> | 15 <post> |
16 <item></item> | 16 <bind text="parent.model.CreateProject($form)"> |
17 <item></item> | 17 <var name="form" text="request"/> |
18 </typeMap> | 18 </bind> |
19 <locators> | 19 </post> |
20 </locators> | 20 </contract> |
21 </resource> | |
22 </root> | |
23 <typeMap> | |
24 <item></item> | |
25 <item></item> | |
26 </typeMap> | |
27 <locators> | |
28 <locator name="relative"> | |
29 <var name="id" text="model.id" /> | |
30 <var name="parent" text="parent.location" /> | |
31 <template>$parent/$id</template> | |
32 </locator> | |
33 <locator name="projects"> | |
34 <var name="id" text="model.id" /> | |
35 <var name="projects" text="application.locate('projects')" /> | |
36 <template>$projects/$id</template> | |
37 </locator> | |
38 </locators> | |
21 </resources> | 39 </resources> |