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
Hosting: Nuxeo: Zope service provider