Hello everybody!
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
######################################
An exception occurred during the last refresh.
Exception type: KeyError
Exception value: 'Duplicate profile ID: CPSBlog:default'
Traceback (most recent call last):
File "/opt/zope2.9/lib/python/App/RefreshFuncs.py", line 183, in performSafeRefresh
if not performRefresh(jar, productid):
File "/opt/zope2.9/lib/python/App/RefreshFuncs.py", line 172, in performRefresh
Application.reinstall_product(app, productid)
File "/opt/zope2.9/lib/python/OFS/Application.py", line 922, in reinstall_product
folder_permissions, raise_exc=1, log_exc=0)
File "/root/instances/zope2.9/bpiDes/Products/CPSCompat/PatchOFSApplication.py", line 74, in install_product
initmethod(context)
File "/root/instances/zope2.9/bpiDes/Products/CPSBlog/__init__.py", line 80, in initialize
for_=ICPSSite)
File "/root/instances/zope2.9/bpiDes/Products/GenericSetup/registry.py", line 580, in registerProfile
raise KeyError, 'Duplicate profile ID: %s' % profile_id
KeyError: 'Duplicate profile ID: CPSBlog:default'
###################################################
Is this a bug? 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?
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
Este correo electrónico y, en su caso, cualquier fichero anexo, contiene información confidencial exclusivamente dirigida a su(s) destinatario(s). Toda copia o divulgación deberá ser autorizada por IAVANTE.
This e-mail and any attachments are confidential and exclusively directed to its adressee(s). Any copy or distribution will have to be authorized by IAVANTE.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nuxeo.com/pipermail/cps-devel/attachments/20060314/f21527df/attachment.htm
Hosting: Nuxeo: Zope service provider