[CPS-devel] Duplicate profile error after refreshing products.

Julien Anguenot ja at nuxeo.com
Thu Mar 23 03:22:11 CET 2006


I believe it was a really interesting feature of Zope2.  This ia a
little sad that it's not supported anymore because if it was really
convenient...

	J.

Florent Guillaume wrote:
> ZMI refresh is now unsupported in Zope, and very hard to make compatible
> with configuration anyway.
> 
> On the other hand, GenericSetup profiles are always reloaded from disc
> when imported. You don't have to restart zope after you change them.
> 
> Florent
> 
> On 15 Mar 2006, at 18:02, JoseLuis de la Rosa Triviño wrote:
> 
>> Do you think there is any other solution instead of restart Zope?
>> Maybe some "intelligent" kind of product refresh to avoid the
>> exception, or something like that.
>> Sometimes I have stupid syntax error and it's very heavy to have to
>> restart zope? :-)
>>
>> Thank you very much.
>>
>> JoseLuis de la Rosa Triviño
>> Becario Área de Sistemas de Información
>> FUNDACIÓN IAVANTE
>> joseluis.rosa at iavantefundacion.com
>> Tel. 951 015 300
>>
>>
>> -----Mensaje original-----
>> De: Lennart Regebro [mailto:regebro at nuxeo.com]
>> Enviado el: martes, 14 de marzo de 2006 13:58
>> Para: JoseLuis de la Rosa Triviño
>> CC: cps-devel at lists.nuxeo.com
>> Asunto: Re: [CPS-devel] Duplicate profile error after refreshing
>> products.
>>
>> JoseLuis de la Rosa Triviño wrote:
>>> I'm migrating a product of my own to CPS 3.4 (Zope 2.9.1) and I'm
>>> starting to use GenericSetup. When I refresh the product from ZMI I get
>>> this error which says that the profile is already registered. The same
>>> exception occurres with some CPS products like CPSDefault, CPSBlog,
>>> MyProject, CPSForum, CPSTypeMaker
>>
>> Right.
>>
>>> Is this a bug?
>>
>> Hard to say, but it's an effect of the architecture of ZCML files, which
>> is very difficult to actually do anything about.
>>
>>> Will it be enough to catch the exception to avoid the
>>> error or there's something else that should be done in the case a
>>> profile is already registered?
>>
>> No, you need to restart the Zope server every time you have made a
>> product change that requires reloading.
>>
>> --Lennart Regebro, Nuxeo     http://www.nuxeo.com/
>> CPS Content Management     http://www.cps-project.org/
>> _______________________________________________
>> cps-devel mailing list
>> http://lists.nuxeo.com/mailman/listinfo/cps-devel
> 
> --Florent Guillaume, Nuxeo (Paris, France)   Director of R&D
> +33 1 40 33 71 59   http://nuxeo.com   fg at nuxeo.com
> 
> 
> _______________________________________________
> cps-devel mailing list
> http://lists.nuxeo.com/mailman/listinfo/cps-devel


-- 
Julien Anguenot | Nuxeo R&D (Paris, France)
CPS Platform : http://www.cps-project.org
Zope3 / ECM   : http://www.z3lab.org
mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.nuxeo.com/pipermail/cps-devel/attachments/20060323/b8d7462e/signature.pgp


More information about the cps-devel mailing list
More information about CPS: CPS project - CVS - API

Hosting: Nuxeo: Zope service provider


This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.