[Zope-Moz] a first setup for ZopeStudio

Martijn Pieters mj@digicool.com
Sat, 15 Jan 2000 16:58:59 -0500


> -----Original Message-----
> From: Shalabh Chaturvedi [mailto:shalabh@pspl.co.in]
>
> The entire project looks very neat now with the zope chrome 
> nicely where it
> should be.
> I see you have also sorted out the code too.
> 
> One thing: The 'treeview' has all treeitems with 
> container='true'. This causes
> twisties to appear with even empty treeitems. The value of
> zope:treeBranchEmpty goes into an 'empty' attribute (is this a valid
> attribute?)
> zope:treeBranchEmpty should be used to decide if 
> container='true' or 'false'.
> This can be done by either having a zope:treeBranchNotEmpty 
> coming from the
> RDF and going directly into 'container', or with the current 
> RDF and rules
> looking like the following:-
> 
> <rule zope:showInTree="1" zope:treeBranchEmpty="true">
> ...
>       <treeitem container="false">
> ...
> </rule>
> <rule zope:showInTree="1" >
> ...
>    <treeitem container="true">
> ...
> </rule>
>

It feels more logical to have 'container' always true, but set 'empty'.
The CSS specifically removes the twisty on tree items that have 'empty'
set to true, and it is a bug in Mozilla when this twisty stills shows
up.

In my tree, no twisties are displayed next to items that have 'empty'
set to true, until I double-click them, or click on the place the twisty
would have been. It then displays the 'minus' icon, as if the thing is
opened. This is also a bug in Mozilla/

I'll bounce this around on the newsgroup I think, ask what the intention
is.
 
> 
> >
> > Requirements: Zope 2.x (tested on Zope 2.1.2 but should 
> work on older
> > versions)
> >               Mozilla M12 (tested on a recent nightly build).
> 
> Just to mention that it doesn't really work with M12 (I tried 
> and found that
> nsIRDFCompositeDataSource:GetDataSources() isn't implemented in M12).
> Should work with recent builds (<5 days old).
> 

Oops. I knew that GetDataSources was recent. Should've checked for that.
Sorry.

> > Thanks go to Shalabh Chaturvedi for taking my simple tree 
> and extending
> > it into ZIDE, and for identifying implementation 
> difficulties. Please do
> > play around and extend on it!
> 
> Am on it already!
> 

Good =)

-- 
Martijn Pieters, Software Engineer 
| Digital Creations http://www.digicool.com 
| Creators of Zope      http://www.zope.org 
| mailto:mj@digicool.com       ICQ: 4532236
| PGP:
http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 
-------------------------------------------