web/views/treeview.py
changeset 5912 ff916bf2eba0
parent 5871 b21eb3e90a10
child 5940 0e3ae19b181a
--- a/web/views/treeview.py	Tue Jul 06 19:31:50 2010 +0200
+++ b/web/views/treeview.py	Tue Jul 06 19:32:29 2010 +0200
@@ -97,6 +97,11 @@
             self.w(self.separator)
         entity.view(vid or self.item_vid, w=self.w)
 
+class TreeComboBoxView(TreePathView):
+    """display folder in edition's combobox"""
+    __regid__ = 'combobox'
+    item_vid = 'text'
+    separator = u' > '
 
 # XXX rename regid to ajaxtree/foldabletree or something like that (same for
 # treeitemview)