[Zope-Moz] Zope preferences in Mozilla

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


> -----Original Message-----
> From: Shalabh Chaturvedi [mailto:shalabh@pspl.co.in]
> 
> I don't really see anyone using Zope Studio booting mozilla 
> into the normal
> 'navigator' mode to set preferences for Zope Studio. I feel that all
> preferences for both the Studio and individual servers should 
> be configurable
> from within Zope Studio itself. There could be one menu item 
> for general
> preferences and another for setting preferences for the zope server in
> context (identified by which server is selected in the treeview).

I sort of was picturing a way to launch ZopeStudio from a normal Mozilla
navigator window. But indeed, just always launching it as mozilla
-chrome chrome://zopestudio/content works better. And then you cannot
access the preferences panel.

We could use the ideas of the prefs panel though, maybe use the current
prefs panel code and twist it into a ZopeStudio prefs panel. I am not
sure if XUL overlays can remove XUL elements from a XUL interface, but
if it does a lot of coding can be avoided. And we'd have the added
advantage of supporting plug-ins for ZopeStudio, that can add their own
panels to the ZopeStudio preferences window.

> > These prefs are Zope Server related, and should therefore 
> be presented
> > in a dialog box for each Zope Server. I envision ZopeStudio 
> being able
> > to handle more than one Zope Server at a time.
> 
> I support the idea too (for managing multiple zope servers). 
> This seems to be
> the most simple way to do it:
> The multiple servers connected to at a time can be shown as different
> 'top-level' treeitems in the 'treeview' (now we need a new 
> icon). Each of
> these will have their subtree of objects under them. There 
> could be menu items
> 'connect' (which pops up a box and asks the server to connect to) and
> 'disconnect', to add and remove servers from the treeview. We 
> would need to
> rename the 'Zope:Treeroot' URI in the RDF to something like
> 'machine_name:Zope:Treeroot' so that we can use more than one 
> zope treeroot
> datasource in the same tree widget.

No. The Zope:TreeRoot URI is for anchoring RDF datasources into the tree
widget. If you add another datasource with Zope:TreeRoot in it, you'll
see that another 1st level icon will appear.

Just try this:

Comment out line 169 of zopestudio.js, so that it reads:

  //oCompDS.RemoveDataSource(oDS);

If you now type the URL of a second Zope install (with the ZopeStudio
Product installed of course), you'll see this second server appear in
the tree as well.

We will need visual feedback as to what servers have been added (URL),
and what server the details view applies to. Also note, that you can add
a URL like: http://localhost/QuickStart and have a partial tree display.
This is important for sites that have delegated out the management of
part of their object tree.

> 
> While I'm at it, I'd like to present a draft design of the 
> main menu I had
> come up with. Suggestions are welcome. Here it is:-
> ( '---' is menuseparator. Number of '+'s define level of menuitem. )
> 
> Zope
> + Conenct...
> + Disconnect
> + ---
> + Refresh
> + ---
> + Exit
> 

I'd call that 'Add...' and 'Remove...' (dialog boxes for both), and the
title would be 'Server', instead of Zope.

> Edit
> + Cut
> + Copy
> + Paste
> + ---
> + Rename...
> + Delete
> 

Okidoki.

> Object
> + New
> +     +DTML Document
> +     +DTML Method
> +     + (and so on...)
> +
> + Edit
> + View
> + ---
> + Properties
> + Security
> + ---
> + Import...
> + Export...

The new menu depends on what the details view displays and your
credentials.

> 
> Tools
> + Find...
> + ---
> + New Product
> + ---
> + Undo...
> + Pack Database...
> + Set Cache Parameters...
> 

New Product falls under the New menu.

Undo should maybe be part of the object menu?

Cache parameters, do you mean server side or ZopeStudio side? Cache in
Mozilla is not tuneable yet.

> Help
> + Contents
> + ---
> + About
> 

Help on Zope objects can be taken care of by the new Help System (see
Zope2 CVS), and there should be a separate ZopeStudio help menu item.

> Many of these will be enabled/disabled depending on the item 
> selected in the
> 'detailsview' or 'treeview'. Many would also be available as 
> context menus.
> 

And as toolbar buttons.

> Also, I suggest that we use the same names for our 'glossary' 
> of terms and the
> ids of XUL widgets.

I have been trying to do this. Please verify if I have been consistent.
Anyone care to set up a glossary?

Paul, how is the setup for the DocBook documentation coming along?

-- 
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 
-------------------------------------------