Hi,
this should be a no-brainer but apart from a recent discussion on the
death of local permissions I can't much on it - how do I use custom
permissions?
I've added them in to zcml but they don't crop up in the security
interfaces and, surprise, surprise, I get an error when I try and
Am 02.06.2009 um 14:47 schrieb Wichert Akkerman:
That assumes the object has already been constructed and you're only
testing constraints for adding the instance to the container. Our use
case is different: we are testing at a point where construction has
not happened yet.
I think there
Am 03.06.2009 um 10:12 schrieb Wichert Akkerman:
There are two reasons I want to block creation of the object:
performance, and user interface. The last one is more critical: the
add-item menus used in Plone (and I suspect CMF as well) look for
all object types that can be constructed
Previously Charlie Clark wrote:
Hi,
this should be a no-brainer but apart from a recent discussion on the
death of local permissions I can't much on it - how do I use custom
permissions?
I've added them in to zcml but they don't crop up in the security
interfaces and, surprise,
Am 03.06.2009 um 13:05 schrieb Wichert Akkerman:
Not if you use collective.autopermission.
In which it states:
# This is borrowed from Products.CMFCore to avoid a dependency.
Where it states
# XXX This ought to be in AccessControl.SecurityInfo.
:-/
It looks like I only need
Summary of messages to the cmf-tests list.
Period Tue Jun 2 12:00:00 2009 UTC to Wed Jun 3 12:00:00 2009 UTC.
There were 7 messages: 7 from CMF Tests.
Tests passed OK
---
Subject: OK : CMF-2.1 Zope-2.10 Python-2.4.6 : Linux
From: CMF Tests
Date: Tue Jun 2 21:32:21 EDT 2009
URL:
Hi Wichert!
Wichert Akkerman wrote:
I have a use case where I need to put additional restrictions on object
creation, in particular I need to restrict the maximum depth of items
inside of a container of a specific type. The ideal place to put such a
restriction seems to be the
Charlie Clark wrote:
Am 03.06.2009 um 13:05 schrieb Wichert Akkerman:
Not if you use collective.autopermission.
In which it states:
# This is borrowed from Products.CMFCore to avoid a dependency.
Where it states
# XXX This ought to be in AccessControl.SecurityInfo.
:-/
That
Am 03.06.2009 um 15:47 schrieb Martin Aspeli:
That code is, but not the whole functionality. The functionality to
register Zope 2 style permissions when a permission / ZCML statement
is used is new to collectie.autopermission. I merged that back into
Zope
for Zope 2.12, so if you're on