[Zope-CMF] TypeError in portal_metadata
Tres Seaver
tseaver@zope.com
27 Jun 2002 09:03:21 -0400
On Wed, 2002-06-26 at 18:18, Joseph Bella wrote:
> Hi All,
>
> i'm relatively new to zope, so fogive me if there is
> an obvious solution to this problem. I installed zope
> 2.5.1 and CMF 1.2. When I go to the portal_metadata
> tool and click on 'Elements' I get:
>
> Error Type: TypeError
> Error Value: sequence index must be integer
>
> Here is the stack trace:
>
> Traceback (innermost last):
> File
> /usr/local/zope/lib/python/ZPublisher/Publish.py, line
> 150, in publish_module
> File
> /usr/local/zope/lib/python/ZPublisher/Publish.py, line
> 114, in publish
> File /usr/local/zope/lib/python/Zope/__init__.py,
> line 159, in zpublisher_exception_hook
> (Object: portal_metadata)
> File
> /usr/local/zope/lib/python/ZPublisher/Publish.py, line
> 98, in publish
> File
> /usr/local/zope/lib/python/ZPublisher/mapply.py, line
> 88, in mapply
> (Object: elementPoliciesForm)
> File
> /usr/local/zope/lib/python/ZPublisher/Publish.py, line
> 39, in call_object
> (Object: elementPoliciesForm)
> File
> /usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py,
> line 252, in __call__
> (Object: elementPoliciesForm)
> File
> /usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py,
> line 283, in _bindAndExec
> (Object: elementPoliciesForm)
> File /usr/local/zope/lib/python/App/special_dtml.py,
> line 172, in _exec
> (Object: elementPoliciesForm)
> File
> /usr/local/zope/lib/python/DocumentTemplate/DT_In.py,
> line 695, in renderwob
> (Object: listElementSpecs)
> File
> /usr/local/zope/lib/python/DocumentTemplate/DT_Let.py,
> line 76, in render
> (Object: key=sequence-key)
> File
> /usr/local/zope/lib/python/DocumentTemplate/DT_Util.py,
> line 159, in eval
> (Object: key == REQUEST[ 'element' ])
> (Info: REQUEST)
> File <string>, line 0, in ?
> TypeError: (see above)
I can't reproduce this on either the HEAD or on a 1.2 checkout
with Zope 2.5.1. The template there is trying to figure out
whether to build a link around the element name being displayed,
and I can't see why it would choke as you report.
Try deleting the 'portal_metadata' tool and re-adding it (select
"CMF Default Tool" from the add list).
Tres.
--
===============================================================
Tres Seaver tseaver@zope.com
Zope Corporation "Zope Dealers" http://www.zope.com