Re: [Zope-CMF] Re: GenericSetup rolemap importer does not register new permissions
Previously Damien Baty (ML) wrote: Hello, Le 10/12/07 14:11, Laurence Rowe a écrit : Damien Baty (ML) wrote: Hello, I am trying to use GenericSetup to define permissions/roles mappings for a product. As far as I can see, the current version of GenericSetup does not register the permission if it does not exist. It supposes that the permission exists and calls 'manage_permission()'. Naturally, it breaks with new (unregistered) permissions. [...] Can you not simply define the permission itself in zcml: permission id=my.package.SomePermission title=My Package: Some permission / I _think_ that should then let you then import a rolemap for it. As Wichert noted, this does not work. (IMO it's a good thing that importing a rolemap for an unregistered raises an error - imagine chasing an error because you have put 'List Folder Contents' instead of 'List folder contents' in your rolemap.xml) Good point. I can imagine that very well, indeed. :) For the record, I have proposed a patch that let us automatically register a permission if the profile explicitly asks for it, with something like: ... permission name=My new permission register=True role name=Manager/ ... https://bugs.launchpad.net/zope-cmf/+bug/178810 -1 I think it's the wrong place to register permissions. Permissions are something both code and application configuration (ie zcml) relies on. That suggests that registering permissions in a GS profile is too late in the game. To me it makes a lot more sense to register permissions and their default roles in zcml. Wichert. -- Wichert Akkerman [EMAIL PROTECTED]It is simple to make things. http://www.wiggy.net/ It is hard to make things simple. ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] CMF 2.1.1 release
The CMF 2.1 branch has seen enough fixes since CMF 2.1.0 to make a meaningful bugfix release. If there are no objections I would cut CMF 2.1.1-beta tomorrow (Friday 12/28) and a final a week later. I'm out of town from tomorrow night until 1/1, that's why I would have to do the beta either tomorrow or after 1/1. The CMF-2.1-branch is currently using the GS 1.3.2 tag, I propose to move that up to the tip of the GS 1.3 branch today, and then tagging GS 1.3.3 alongside CMF 2.1.1 final and pinning them together that way. jens ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] Re: CMF 2.1.1 release
Jens Vagelpohl wrote: The CMF 2.1 branch has seen enough fixes since CMF 2.1.0 to make a meaningful bugfix release. If there are no objections I would cut CMF 2.1.1-beta tomorrow (Friday 12/28) and a final a week later. I'm out of town from tomorrow night until 1/1, that's why I would have to do the beta either tomorrow or after 1/1. The CMF-2.1-branch is currently using the GS 1.3.2 tag, I propose to move that up to the tip of the GS 1.3 branch today, and then tagging GS 1.3.3 alongside CMF 2.1.1 final and pinning them together that way. +1 Hanno ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] CMF Tests: 11 OK
Summary of messages to the cmf-tests list. Period Wed Dec 26 12:00:00 2007 UTC to Thu Dec 27 12:00:00 2007 UTC. There were 11 messages: 11 from CMF Unit Tests. Tests passed OK --- Subject: OK : CMF-1.5 Zope-2.7 Python-2.3.6 : Linux From: CMF Unit Tests Date: Wed Dec 26 21:31:41 EST 2007 URL: http://mail.zope.org/pipermail/cmf-tests/2007-December/007432.html Subject: OK : CMF-1.5 Zope-2.8 Python-2.3.6 : Linux From: CMF Unit Tests Date: Wed Dec 26 21:33:11 EST 2007 URL: http://mail.zope.org/pipermail/cmf-tests/2007-December/007433.html Subject: OK : CMF-1.5 Zope-2.9 Python-2.4.4 : Linux From: CMF Unit Tests Date: Wed Dec 26 21:34:41 EST 2007 URL: http://mail.zope.org/pipermail/cmf-tests/2007-December/007434.html Subject: OK : CMF-1.6 Zope-2.8 Python-2.3.6 : Linux From: CMF Unit Tests Date: Wed Dec 26 21:36:11 EST 2007 URL: http://mail.zope.org/pipermail/cmf-tests/2007-December/007435.html Subject: OK : CMF-1.6 Zope-2.9 Python-2.4.4 : Linux From: CMF Unit Tests Date: Wed Dec 26 21:37:41 EST 2007 URL: http://mail.zope.org/pipermail/cmf-tests/2007-December/007436.html Subject: OK : CMF-2.0 Zope-2.9 Python-2.4.4 : Linux From: CMF Unit Tests Date: Wed Dec 26 21:39:12 EST 2007 URL: http://mail.zope.org/pipermail/cmf-tests/2007-December/007437.html Subject: OK : CMF-2.0 Zope-2.10 Python-2.4.4 : Linux From: CMF Unit Tests Date: Wed Dec 26 21:40:42 EST 2007 URL: http://mail.zope.org/pipermail/cmf-tests/2007-December/007438.html Subject: OK : CMF-2.1 Zope-2.10 Python-2.4.4 : Linux From: CMF Unit Tests Date: Wed Dec 26 21:42:12 EST 2007 URL: http://mail.zope.org/pipermail/cmf-tests/2007-December/007439.html Subject: OK : CMF-2.1 Zope-trunk Python-2.4.4 : Linux From: CMF Unit Tests Date: Wed Dec 26 21:43:42 EST 2007 URL: http://mail.zope.org/pipermail/cmf-tests/2007-December/007440.html Subject: OK : CMF-trunk Zope-2.10 Python-2.4.4 : Linux From: CMF Unit Tests Date: Wed Dec 26 21:45:12 EST 2007 URL: http://mail.zope.org/pipermail/cmf-tests/2007-December/007441.html Subject: OK : CMF-trunk Zope-trunk Python-2.4.4 : Linux From: CMF Unit Tests Date: Wed Dec 26 21:46:42 EST 2007 URL: http://mail.zope.org/pipermail/cmf-tests/2007-December/007442.html ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] Re: CMF 2.1.1 release
Jens Vagelpohl wrote: The CMF 2.1 branch has seen enough fixes since CMF 2.1.0 to make a meaningful bugfix release. If there are no objections I would cut CMF 2.1.1-beta tomorrow (Friday 12/28) and a final a week later. I'm out of town from tomorrow night until 1/1, that's why I would have to do the beta either tomorrow or after 1/1. The CMF-2.1-branch is currently using the GS 1.3.2 tag, I propose to move that up to the tip of the GS 1.3 branch today, and then tagging GS 1.3.3 alongside CMF 2.1.1 final and pinning them together that way. +1 If there are no objections before this evening, I'll backport the changes mentioned here: http://mail.zope.org/pipermail/zope-cmf/2007-December/026999.html Cheers, Yuppie ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
Re: [Zope-CMF] Re: CMF 2.1.1 release
On Dec 27, 2007, at 12:57 , yuppie wrote: Jens Vagelpohl wrote: The CMF 2.1 branch has seen enough fixes since CMF 2.1.0 to make a meaningful bugfix release. If there are no objections I would cut CMF 2.1.1-beta tomorrow (Friday 12/28) and a final a week later. I'm out of town from tomorrow night until 1/1, that's why I would have to do the beta either tomorrow or after 1/1. The CMF-2.1-branch is currently using the GS 1.3.2 tag, I propose to move that up to the tip of the GS 1.3 branch today, and then tagging GS 1.3.3 alongside CMF 2.1.1 final and pinning them together that way. +1 If there are no objections before this evening, I'll backport the changes mentioned here: http://mail.zope.org/pipermail/zope-cmf/2007-December/026999.html No objections from me. I should have said that right away when I read your original message. jens ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests