[Zope] CMF reconfiguration error

Hans de Wit hw@scp.nl
Tue, 3 Apr 2001 11:11:02 MET


Hello,

I tried the CMF on a clean Zope 2.3.1 configuration. Everything went pretty good, except 
for the reconfiguration of the portal: 

Error Type: TypeError
Error Value: expected integer key

The traceback is in the end of this message.

I am using a Windows machine, so the assumptions in the readme are not completely met:
      - Zope configured using INSTANCE_HOME, '/var/zope', and
        SOFTWARE_HOME, '/usr/local/zope/Zope-2.3.1b1'.

The installation of CMF on my Zope 2.3.1 is as follows (it could be the cause of the
error). I moved the three directories: CMFCore CMFDefault and CMFTopic to
lib\python\products and started Zope. This works fine until reconfiguration of the portal.

Traceback (innermost last):
  File C:\Program Files\Zope\lib\python\ZPublisher\Publish.py, line 223, in publish_module
  File C:\Program Files\Zope\lib\python\ZPublisher\Publish.py, line 187, in publish File
  C:\Program Files\Zope\lib\python\Zope\__init__.py, line 221, in
  zpublisher_exception_hook
    (Object: Traversable)
  File C:\Program Files\Zope\lib\python\ZPublisher\Publish.py, line 171, in publish
  File C:\Program Files\Zope\lib\python\ZPublisher\mapply.py, line 160, in mapply
    (Object: reconfig)
  File C:\Program Files\Zope\lib\python\ZPublisher\Publish.py, line 112, in call_object
    (Object: reconfig)
  File C:\Program Files\Zope\lib\python\Products\CMFCore\FSDTMLMethod.py, line 218, in
  __call__
    (Object: reconfig)
  File C:\Program Files\Zope\lib\python\DocumentTemplate\DT_String.py, line 538, in
  __call__
    (Object: reconfig)
  File C:\Program Files\Zope\lib\python\DocumentTemplate\DT_Return.py, line 106, in render
    (Object: reconfig_form(_.None, _, portal_status_message='Settings changed'))
  File C:\Program Files\Zope\lib\python\DocumentTemplate\DT_Util.py, line 334, in eval
    (Object: reconfig_form(_.None, _, portal_status_message='Settings changed'))
    (Info: _)
  File <string>, line 0, in ?
  File C:\Program Files\Zope\lib\python\Products\CMFCore\FSDTMLMethod.py, line 213, in
  __call__
    (Object: reconfig_form)
  File C:\Program Files\Zope\lib\python\DocumentTemplate\DT_String.py, line 538, in
  __call__
    (Object: reconfig_form)
  File C:\Program Files\Zope\lib\python\Products\CMFCore\FSDTMLMethod.py, line 213, in
  __call__
    (Object: standard_html_header)
  File C:\Program Files\Zope\lib\python\DocumentTemplate\DT_String.py, line 538, in
  __call__
    (Object: standard_html_header)
  File C:\Program Files\Zope\lib\python\Products\CMFCore\FSDTMLMethod.py, line 213, in
  __call__
    (Object: actions_box)
  File C:\Program Files\Zope\lib\python\DocumentTemplate\DT_String.py, line 538, in
  __call__
    (Object: actions_box)
  File C:\Program Files\Zope\lib\python\DocumentTemplate\DT_Let.py, line 146, in render
    (Object: isAnon="portal_membership.isAnonymousUser()"
          AuthClass="isAnon and 'GuestActions' or 'MemberActions'"
          uname="isAnon and 'Guest'
                 or portal_membership.getAuthenticatedMember().getUserName()"
          obj="this()"
          actions="portal_actions.listFilteredActionsFor(obj)"
          user_actions="actions['user']"
          folder_actions="actions['folder']"
          object_actions="actions['object'] + actions['workflow']"
          global_actions="actions['global']")
  File C:\Program Files\Zope\lib\python\DocumentTemplate\DT_Util.py, line 334, in eval
    (Object: portal_actions.listFilteredActionsFor(obj))
    (Info: portal_actions)
  File <string>, line 0, in ?
  File C:\Program Files\Zope\lib\python\Products\CMFCore\ActionsTool.py, line 162, in
  listFilteredActionsFor
    (Object: portal_actions)
  File C:\Program Files\Zope\lib\python\Products\CMFCore\WorkflowTool.py, line 222, in
  listActions
    (Object: portal_workflow)
  File C:\Program Files\Zope\lib\python\Products\CMFCore\DefaultWorkflow.py, line 209, in
  listGlobalActions File C:\Program Files\Zope\lib\python\Products\CMFCore\CatalogTool.py,
  line 200, in searchResults
    (Object: Traversable)
  File C:\Program Files\Zope\lib\python\Products\ZCatalog\ZCatalog.py, line 535, in
  searchResults
    (Object: Traversable)
  File C:\Program Files\Zope\lib\python\Products\ZCatalog\Catalog.py, line 651, in
  searchResults File C:\Program Files\Zope\lib\python\Products\ZCatalog\Catalog.py, line
  542, in _indexedSearch File C:\Program Files\Zope\lib\python\SearchIndex\UnTextIndex.py,
  line 513, in _apply_index File C:\Program
  Files\Zope\lib\python\SearchIndex\UnTextIndex.py, line 576, in query File C:\Program
  Files\Zope\lib\python\SearchIndex\UnTextIndex.py, line 616, in evaluate File C:\Program
  Files\Zope\lib\python\SearchIndex\UnTextIndex.py, line 448, in __getitem__
TypeError: (see above)

Met vriendelijke groeten,

Hans de Wit

h.de.wit@scp.nl