[Zope-dev] Wild and crazzzzy idea: Hierarchial permissions

Adrian Hungate adrian@haqa.co.uk
Wed, 5 Dec 2001 14:13:56 -0000


Limiting the list of products in the Add Object list can be done currently
using my PatchKit product - http://www.zope.org/Members/haqa/PatchKit

(It does some other stuff too)

Adrian...
----- Original Message -----
From: "Oliver Bleutgen" <myzope@gmx.net>
To: <zope-dev@zope.org>
Sent: Thursday, November 22, 2001 12:22 PM
Subject: Re: [Zope-dev] Wild and crazzzzy idea: Hierarchial permissions


Lennart Regebro wrote:

> The list of permissions is getting quite long. It's the basic permissions
of
> Zope, plus the ones for our CM system. And we haven't even integrated CMF
> with it (which we may or may not do in the future).
>
> To make things easier to find we have names all our permissions "Easy
> <something>". I then got the idea that the permission list could be
> hierarchial or filtered or grouped or something. All permissions would
have
> another setting to specify it group. That way the Zope base permissions
> could be grouped together into a "Zope Base" persmission group. We could
> group our in an "Torped Easy Publisher" permission group, and so on.
>
> Good idea or stupid?

Well, for your use you could just hardcode some permission "groups" and
include them in the dtml-file which resembles zopes security screen.
A little bit javascript and selecting one of your groups would
automagically be checked when you check one of your groups.

What I'm missig more is flexibility for the "Add object" mechanism.
The possibility to install products not globally, but locally for a
folder and it's subfolders and some hierachical sorting of "add type"
selectbox.
Perhaps the tree could be (ab-)used to get a structure like

+ text product
    - DTML Document
    - DTML Method
+ Images, Files
    - Image
    - File
+ SQL Stuff
    - ZSQL Method
    - PoPy Database Connection
    - Search Interface

etc....

To get back to the topic, perhaps your wishes and mine could be
combined: A permissions group for "edit text products" which would
automatically select the right permissions.

cheers,
oliver





_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )