annotate _test/Resources/sample.xml @ 225:a1e868b0fba9

Bindings concept in progress
author sergey
date Fri, 31 Aug 2012 16:41:18 +0400
parents e6c050db7d98
children b6cde007a175
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
218
sergey
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
2 <resources xmlns="http://implab.org/schemas/resources"
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
4 xsi:schemaLocation="http://implab.org/schemas/resources resources.xsd ">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
5 <root>
225
a1e868b0fba9 Bindings concept in progress
sergey
parents: 224
diff changeset
6 <get expr="$model" />
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
7
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
8 <resource>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
9 <name>projects</name>
225
a1e868b0fba9 Bindings concept in progress
sergey
parents: 224
diff changeset
10 <model expr="$model" />
a1e868b0fba9 Bindings concept in progress
sergey
parents: 224
diff changeset
11 <get expr="$model->projects" />
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
12
225
a1e868b0fba9 Bindings concept in progress
sergey
parents: 224
diff changeset
13 <post expr="$model->CreateProject($project)">
224
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
14 <var name="project">
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
15 <transform class="IMPL::Web::Transform::BindModel" />
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
16 </var>
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
17 <response>
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
18 <redirect>
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
19 <location locator="projects-locator" />
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
20 </redirect>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
21 </response>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
22 </post>
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
23
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
24 <resource>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
25 <match>(\w+)</match>
225
a1e868b0fba9 Bindings concept in progress
sergey
parents: 224
diff changeset
26 <model expr="$model->GetProject($resourceId)" />
224
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
27
225
a1e868b0fba9 Bindings concept in progress
sergey
parents: 224
diff changeset
28 <get expr="$model" />
a1e868b0fba9 Bindings concept in progress
sergey
parents: 224
diff changeset
29 <put expr="$model->update(data)">
a1e868b0fba9 Bindings concept in progress
sergey
parents: 224
diff changeset
30 <var name="data">
a1e868b0fba9 Bindings concept in progress
sergey
parents: 224
diff changeset
31 <transform class="IMPL::Web::Transform::BindModel" />
a1e868b0fba9 Bindings concept in progress
sergey
parents: 224
diff changeset
32 </var>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
33 </put>
224
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
34
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
35 <resource>
224
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
36 <name>library</name>
225
a1e868b0fba9 Bindings concept in progress
sergey
parents: 224
diff changeset
37 <model expr="$model" />
a1e868b0fba9 Bindings concept in progress
sergey
parents: 224
diff changeset
38 <get expr="$model" />
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
39 </resource>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
40 <resource>
224
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
41 <name>sources</name>
225
a1e868b0fba9 Bindings concept in progress
sergey
parents: 224
diff changeset
42 <model expr="$model" />
a1e868b0fba9 Bindings concept in progress
sergey
parents: 224
diff changeset
43 <get expr="$model" />
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
44 </resource>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
45 </resource>
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
46 </resource>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
47 </root>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
48 <contracts>
225
a1e868b0fba9 Bindings concept in progress
sergey
parents: 224
diff changeset
49 <contract id="project-contract" modelType="IMPL::Web::Model::Project">
a1e868b0fba9 Bindings concept in progress
sergey
parents: 224
diff changeset
50 <get expr="$model"/>
224
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
51 </contract>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
52 </contracts>
218
sergey
parents:
diff changeset
53 </resources>