Hi, I have an DTML method with the following code: <!--#tree id=Outline branches_expr="navigate_filter('private', 'no',['Folder','File','DTML Document'],'0')" nowrap='1' assume_children='0' skip_unauthorized='1' --> : : <!--#/tree--> The tree is inserting a plus icon in front of empty folders and file documents. If I click on that icon it expands the tree. In the case of the empty folder I get something like: - Empty folder - Empty folder + Empty folder In the case of a document: - folder + file 1 - file 2 + file 1 + file 2 Any ideas? -- Carlos Henrique Bauer
On Mon, 2 Aug 1999, Carlos Henrique Bauer wrote:
Hi,
I have an DTML method with the following code:
<!--#tree id=Outline branches_expr="navigate_filter('private', 'no',['Folder','File','DTML Document'],'0')" Again: '0' is TRUE for python. Use 0. Or leave it at the default. nowrap='1' assume_children='0' Try: assume_children=0 or assume_children='' Python does interpret an empty string or a zero number as false ;) skip_unauthorized='1' --> : : <!--#/tree-->
The tree is inserting a plus icon in front of empty folders and file documents. If I click on that icon it expands the tree. In the case of the empty folder I get something like:
- Empty folder - Empty folder + Empty folder
In the case of a document:
- folder + file 1 - file 2 + file 1 + file 2
Any ideas?
-- Carlos Henrique Bauer
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(To receive general Zope announcements, see: http://www.zope.org/mailman/listinfo/zope-announce
For developer-specific issues, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
-- Andreas Kostyrka | andreas@mtg.co.at phone: +43/1/7070750 | phone: +43/676/4091256 MTG Handelsges.m.b.H. | fax: +43/1/7065299 Raiffeisenstr. 16/9 | 2320 Zwoelfaxing AUSTRIA
At 00:23 03/08/99 , Carlos Henrique Bauer wrote:
Hi,
I have an DTML method with the following code:
<!--#tree id=Outline branches_expr="navigate_filter('private', 'no',['Folder','File','DTML Document'],'0')" nowrap='1' assume_children='0' skip_unauthorized='1' --> : : <!--#/tree-->
The tree is inserting a plus icon in front of empty folders and file documents. If I click on that icon it expands the tree. In the case of the empty folder I get something like:
- Empty folder - Empty folder + Empty folder
In the case of a document:
- folder + file 1 - file 2 + file 1 + file 2
Any ideas?
What does 'navigate_filter' do? 'id=Outline' means that the property or method 'Outline' provides for the unique id for each object displayed in the tree. Is this your intention? You can omit the asume_children attribute, and just placing 'skip_unathorized' (without the ='1') will do. The same goes for 'nowrap': <!--#tree id=Outline branches_expr="navigate_filter('private', 'no', ['Folder', 'File', 'DTML Document'], '0')" nowrap skip_unauthorized--> -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-7502100 Fax: +31-35-7502111 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
On Tue, 3 Aug 1999, Martijn Pieters wrote:
What does 'navigate_filter' do? navigate_filter comes from the Navigation Product (look at the Contrib Area and http://www.mtg.co.at/projects/products/Navigation)
It is a superset of objectValues(), from the README.txt: Navigate adds a Folder method "navigate_filter". navigate_filter(key,value,cat="Folder",acquire=0,negate=0) navigate_filter returns all subobjects of type cat of the Folder, that have an string attribute key with the given value. if acquire is true, navigate_filter uses Aquisition for key, else it ignores acquired attributes. if negate is true, the method returns the objects that do not have the key with the right value. $Id: README.txt,v 1.3 1999/07/01 19:58:36 andreas Exp $ Andreas -- Andreas Kostyrka | andreas@mtg.co.at phone: +43/1/7070750 | phone: +43/676/4091256 MTG Handelsges.m.b.H. | fax: +43/1/7065299 Raiffeisenstr. 16/9 | 2320 Zwoelfaxing AUSTRIA
participants (3)
-
Andreas Kostyrka -
Carlos Henrique Bauer -
Martijn Pieters