[Zope-CMF] GenericSetup "rolemap" importer does not register new permissions

2007-12-08 Thread Damien Baty (ML)
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

[Zope-CMF] Why does GenericSetup remove indexes before adding them again?

2007-12-13 Thread Damien Baty (ML)
Hello, If I define a catalog index with GenericSetup, GS kindly removes the index of the same name if it exists, and then add it again. This is probably a good intention. However, when I reinstall a product (in this case, a Plone product), removing and adding back the index causes th

[Zope-CMF] [GenericSetup] Adding expressiveness in XML or disperse setup in both Python and XML files?

2007-12-13 Thread Damien Baty (ML)
Hello, After having been quite enthusiastic about Generic Setup, I am now a bit disappointed. There are several use cases (see my recent message about not being able to register a permission, for example) where I cannot express what I want in XML. Obviously, I can write the missing

Re: [Zope-CMF] Re: GenericSetup "rolemap" importer does not register new permissions

2007-12-26 Thread Damien Baty (ML)
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

Re: [Zope-CMF] Re: GenericSetup "rolemap" importer does not register new permissions

2008-01-03 Thread Damien Baty (ML)
Hello, Le 27/12/07 9:49, Wichert Akkerman a écrit : Previously Damien Baty (ML) wrote: [...] 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: ... ... https