[Zope-Moz] ANNOUNCE: Zope management tree in Mozilla
Martijn Pieters
mj@digicool.com
Tue, 11 Jan 2000 12:02:23 -0500
> -----Original Message-----
> From: Shalabh Chaturvedi [mailto:shalabh@pspl.co.in]
>
> From: Martijn Pieters <mj@digicool.com>
> > Every time a user opens up a branch, the new datasource
> gets added to a
> > JavaScript dictionary (to use a Python term). We could maybe avoid
> > adding the datasource to the tree when already in the
> dictionary, but
> > this makes no difference to Mozilla right now. If it already has a
> > datasource loaded, it won't do so again.
> >
> > Now, when a user closes a branch, we remove the datasource
> name _only
> > from the dictionary_. And when the window is closed, we persist the
> > dictionary. On reopening the window, the dictionary is
> populated with
> > the persisted data, and we add all these datasources to the
> tree again.
>
> I was thinking of something similar too. How do you plan to
> persist the
> dictionary? We can try to put it as a string of concatenated
> URIs (with
> whitespace) in the datasources attribute of the tree element
> itself. And also
> put in 'persist="datasources"'.
> Just an idea - haven't tested it.
Exactly the plan.
>
> > I'll go and implement this today.
>
> Great ! (hmm...now what do I do?)
>
Toolbars, menus, popups? Other ideas:
- DTML editing window: (Just simple text editing, no validation or some
such). I have a few ideas about that one.
- Property sheet view
- Security views (tabbed?)
> > >
> > > An unrelated small functionality I've put in is a zp:Empty
> > > attibute in the RDF
> > > which is set to "true" <dtml-if tpValues>. It is used in the
> > > XUL so that
> > > twisties are shown only for non-empty treeitems.
> >
> > If you remove the 'container="true"' attribute, the above
> hack is not
> > necessary, as Mozilla will find out whether or not they are empty by
> > itself.
>
> Yes, but when the contents.rdf for the contents of a folder
> is not loaded up,
> mozilla doesn't know if the folder is empty or not.
> So, no twisties are shown initially. You have to expand a
> treeitem 'A' (this
> would load up the contents.rdf with the contents of A), then
> collapse the
> parent treeitem of 'A' and reexpand it to see the twisty next to 'A'.
Very good point! Did not think about that one.
--
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
-------------------------------------------