Author: jmorliaguet
Date: Sat Feb 18 18:09:44 2006
New Revision: 2422

Modified:
   
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/treeview/browser.py
   
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/treeview/treeview_widget.pt
Log:

- renamed 'container' as 'inner' and 'item' as 'leaf'



Modified: 
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/treeview/browser.py
==============================================================================
--- 
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/treeview/browser.py
  (original)
+++ 
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/treeview/browser.py
  Sat Feb 18 18:09:44 2006
@@ -7,15 +7,16 @@
 
 tree_data = {
     'items': [
-        {'id': '1', 'title': 'item 1', 'depth': 1, 'type': 'container'},
-        {'id': '2', 'title': 'item 2', 'depth': 1, 'type': 'container'},
-        {'id': '3', 'title': 'item 3', 'depth': 2, 'type': 'item'},
-        {'id': '4', 'title': 'item 4', 'depth': 2, 'type': 'item'},
-        {'id': '5', 'title': 'item 5', 'depth': 2, 'type': 'item', 
+        {'id': '1', 'title': 'item 1', 'depth': 1, 'type': 'inner'},
+        {'id': '2', 'title': 'item 2', 'depth': 1, 'type': 'inner'},
+        {'id': '3', 'title': 'item 3', 'depth': 2, 'type': 'leaf'},
+        {'id': '4', 'title': 'item 4', 'depth': 2, 'type': 'inner'},
+        {'id': '5', 'title': 'item 5', 'depth': 3, 'type': 'leaf', 
+          'position': 'last'},
+        {'id': '6', 'title': 'item 6', 'depth': 1, 'type': 'inner'},
+        {'id': '7', 'title': 'item 7', 'depth': 1, 'type': 'inner'},
+        {'id': '8', 'title': 'item 7', 'depth': 2, 'type': 'leaf',
           'position': 'last'},
-        {'id': '6', 'title': 'item 6', 'depth': 1, 'type': 'container'},
-        {'id': '7', 'title': 'item 7', 'depth': 1, 'type': 'container'},
-        {'id': '8', 'title': 'item 7', 'depth': 2, 'type': 'item'},
     ]
 }
 
@@ -39,7 +40,7 @@
             else:
                 filter_depth = MAX_DEPTH
 
-            if item['type'] == 'container':
+            if item['type'] == 'inner':
                 state = tree_state.get(item['id'])
                 if state != 'open':
                     filter_depth = depth

Modified: 
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/treeview/treeview_widget.pt
==============================================================================
--- 
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/treeview/treeview_widget.pt
  (original)
+++ 
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/treeview/treeview_widget.pt
  Sat Feb 18 18:09:44 2006
@@ -7,19 +7,19 @@
   <img class="close" ctal:attributes="nodeid item/id"
        src="/++skin++cpsskins-test/@@/++resource++container-open.png"
        ctal:condition="javascript:state[item['id']] == 'open' &&
-                                  item['type'] == 'container'" />
+                                  item['type'] == 'inner'" />
 
   <img class="open" ctal:attributes="nodeid item/id"
        src="/++skin++cpsskins-test/@@/++resource++container.png"
        ctal:condition="javascript:state[item['id']] != 'open' &&
-                                  item['type'] == 'container'" />
+                                  item['type'] == 'inner'" />
 
   <img src="/++skin++cpsskins-test/@@/node-link-branch.png"
-       ctal:condition="javascript:item['type'] != 'container'
+       ctal:condition="javascript:item['type'] == 'leaf'
                                && item['position'] != 'last'"/>
 
   <img src="/++skin++cpsskins-test/@@/node-link-last.png"
-       ctal:condition="javascript:item['type'] != 'container'
+       ctal:condition="javascript:item['type'] == 'leaf'
                                && item['position'] == 'last'"/>
 
   <img src="/++skin++cpsskins-test/@@/folder.png" />
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to