Author: jmorliaguet
Date: Thu Feb  2 16:01:36 2006
New Revision: 2270

Modified:
   
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/cpsskins_storage_adapters.pt
Log:

- added a test for compound storages.



Modified: 
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/cpsskins_storage_adapters.pt
==============================================================================
--- 
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/cpsskins_storage_adapters.pt
    (original)
+++ 
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/cpsskins_storage_adapters.pt
    Thu Feb  2 16:01:36 2006
@@ -223,6 +223,55 @@
 
   </div>
 
+  <h2>Compound storage</h2>
+  <p>A compound storage is created by combining the storages of different 
models.</p>
+
+  <div id="area3">
+    <ins class="model">
+    {"id": "message",
+     "data": {
+      "message": "Please wait ..."
+     },
+     "storage": {
+       "type": "volatile"
+       }
+    }}
+    </ins>
+
+    <ins class="model">
+    {"id": "content",
+     "data": {
+      "content": "Loading data ..."
+     },
+     "storage": {
+       "type": "remote",
+       "accessors": {
+         "get": "@@getData1",
+         "set": "@@setData1"
+       }
+    }}
+    </ins>
+
+    <ins class="model">
+    {"id": "compound-data-provider",
+     "data": {
+      "message": "",
+      "content": ""
+     },
+     "storage": {
+       "type": "compound",
+       "partitions": ["message", "content"]
+    }}
+    </ins>
+
+    <ins class="view">
+    {"widget": {
+      "type": "inputbox"
+     },
+     "model": "compound-data-provider",
+     "controller": "controller"
+    }
+    </ins>
 
 </body>
 </html>
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to