[Zope-CMF] Version problems..
Tres Seaver
tseaver@zope.com
30 Jun 2002 16:54:17 -0400
On Sun, 2002-06-30 at 12:56, Magnus Heino wrote:
>
> Hi.
>
> Latest CMF HEAD with Zope-2_5-branch gives this error when creating a CMF
> Site:
>
> Error Type: Index Exists
> Error Value: The index specified already exists
>
> Traceback (innermost last):
> File /home/magnus/bugday/Zope-2_5-branch/lib/python/ZPublisher/Publish.py,
> line 150, in publish_module
> File /home/magnus/bugday/Zope-2_5-branch/lib/python/ZPublisher/Publish.py,
> line 114, in publish
> File /home/magnus/bugday/Zope-2_5-branch/lib/python/Zope/__init__.py, line
> 159, in zpublisher_exception_hook
> File /home/magnus/bugday/Zope-2_5-branch/lib/python/ZPublisher/Publish.py,
> line 98, in publish
> File /home/magnus/bugday/Zope-2_5-branch/lib/python/ZPublisher/mapply.py,
> line 88, in mapply
> (Object: manage_addCMFSite)
> File /home/magnus/bugday/Zope-2_5-branch/lib/python/ZPublisher/Publish.py,
> line 39, in call_object
> (Object: manage_addCMFSite)
> File /home/magnus/bugday/Zope/lib/python/Products/CMFDefault/Portal.py, line
> 337, in manage_addCMFSite
> File /home/magnus/bugday/Zope/lib/python/Products/CMFDefault/Portal.py, line
> 309, in create
> File /home/magnus/bugday/Zope/lib/python/Products/CMFDefault/Portal.py, line
> 282, in setup
> File /home/magnus/bugday/Zope/lib/python/Products/CMFDefault/Portal.py, line
> 166, in setupTools
> File /home/magnus/bugday/Zope/lib/python/Products/CMFCore/utils.py, line
> 286, in manage_addTool
> File /home/magnus/bugday/Zope/lib/python/Products/CMFCore/CatalogTool.py,
> line 93, in __init__
> (Object: portal_catalog)
> File /home/magnus/bugday/Zope/lib/python/Products/CMFCore/CatalogTool.py,
> line 165, in _initIndexes
> (Object: portal_catalog)
> File
> /home/magnus/bugday/Zope-2_5-branch/lib/python/Products/ZCatalog/ZCatalog.py,
> line 826, in addIndex
> (Object: portal_catalog)
> File
> /home/magnus/bugday/Zope-2_5-branch/lib/python/Products/ZCatalog/Catalog.py,
> line 262, in addIndex
> Index Exists: (see above)
>
> Is the target for 1.3 Zope 2.6 only? It works there.
No, 1.3 is still intended to work with 2.5 and 2.6 (maybe 2.4 if I can
manage to find time to test it there). Florent added something to
make it work with 2.6 (which no longer creates *any* default indexes);
we should arrange for it to work both places.
> What doesnt work on the other hand, with 2.6, is Plone.
>
> Things like this;
>
> <title tal:content="string:${here/portal_properties/title} />
>
> throws;
>
> Unauthorized: You are not allowed to access portal_properties in this context
> (Also, an error occurred while attempting to render the standard error
> message.)
>
> Warp it up in a "return context.portal_properties.title() script and call that
> instead, and it works...
>
> I'm not sure what has changed in Zope2.6, so I really don't know where to
> start looking....?
>
> It did work with CMF and Zope HEAD a few days ago.
Hmm, I haven't looked recently at the changes for 2.6; we may need
to add security assertions to the properties tool. Please file a
tracker issue on this one:
http://www.zope.org/Products/PTK/Tracker
Tres.
--
===============================================================
Tres Seaver tseaver@zope.com
Zope Corporation "Zope Dealers" http://www.zope.com