[Zope] Zcatalog confusion

Geir B Hansen geirh@funcom.com
Thu, 7 Oct 1999 16:48:08 +0200


> The reason for this error is because of the way python methods work.
In
> this case, you are using an *unbound* method, meaning a method that
> isn't bound to a particular object.  Try:
>
>         object.manage_editCataloger('newscatalog')
>
> Where 'object' is the CatalogAware object you want to change the
> Cataloger value on.  You could also do:
>
>         manage_editCataloger(object, 'newscatalog')
>
> -Michel


Thanks..
Getting closer.. Now, the traceback actually pops by the
manage_editCataloger , so although i don't know exactly what i am
talking about here, it seems we are closing in on a solution.
(I'd sure love to be one of the guys who help people out, and not only
scream helplessly for assistance.)

What happens now is that whenever i add a zclass instance i get the
following return:

 Error Type: TypeError
Error Value: sequence index must be integer

Traceback (innermost last):
  File
/usr/local/funweb/src/python/Zope2/lib/python/ZPublisher/Publish.py,
line 214, in publish_module
  File
/usr/local/funweb/src/python/Zope2/lib/python/ZPublisher/Publish.py,
line 179, in publish
  File /usr/local/funweb/src/python/Zope2/lib/python/Zope/__init__.py,
line 201, in zpublisher_exception_hook
    (Object: RoleManager)
  File
/usr/local/funweb/src/python/Zope2/lib/python/ZPublisher/Publish.py,
line 165, in publish
  File
/usr/local/funweb/src/python/Zope2/lib/python/ZPublisher/mapply.py, line
160, in mapply
    (Object: intranet_news_add)
  File
/usr/local/funweb/src/python/Zope2/lib/python/ZPublisher/Publish.py,
line 102, in call_object
    (Object: intranet_news_add)
  File /usr/local/funweb/src/python/Zope2/lib/python/OFS/DTMLMethod.py,
line 145, in __call__
    (Object: intranet_news_add)
  File
/usr/local/funweb/src/python/Zope2/lib/python/DocumentTemplate/DT_String
.py, line 502, in __call__
    (Object: intranet_news_add)
  File
/usr/local/funweb/src/python/Zope2/lib/python/DocumentTemplate/DT_With.p
y, line 148, in render
    (Object: intranet_news.createInObjectManager(REQUEST['id'],
REQUEST))
  File
/usr/local/funweb/src/python/Zope2/lib/python/DocumentTemplate/DT_Util.p
y, line 329, in eval
    (Object: manage_editCataloger(intranet_news, 'newscatalog'))
  File <string>, line 0, in ?
  File
/usr/local/funweb/src/python/Zope2/lib/python/Products/ZCatalog/CatalogA
wareness.py, line 109, in manage_editCataloger
    (Object: CatalogAware)
  File
/usr/local/funweb/src/python/Zope2/lib/python/App/special_dtml.py, line
120, in __call__
    (Object: manage_main)
    (Info: /usr/local/funweb/src/python/Zope2/lib/python/OFS/main.dtml)
  File
/usr/local/funweb/src/python/Zope2/lib/python/DocumentTemplate/DT_String
.py, line 502, in __call__
    (Object: manage_main)
  File
/usr/local/funweb/src/python/Zope2/lib/python/App/special_dtml.py, line
120, in __call__
    (Object: manage_tabs)
    (Info:
/usr/local/funweb/src/python/Zope2/lib/python/App/manage_tabs.dtml)
  File
/usr/local/funweb/src/python/Zope2/lib/python/DocumentTemplate/DT_String
.py, line 502, in __call__
    (Object: manage_tabs)
  File
/usr/local/funweb/src/python/Zope2/lib/python/DocumentTemplate/DT_With.p
y, line 133, in render
    (Object: _(manage_options=filtered_manage_options()))
  File
/usr/local/funweb/src/python/Zope2/lib/python/DocumentTemplate/DT_Util.p
y, line 323, in eval
    (Object: _(manage_options=filtered_manage_options()))
TypeError: (see above)


------------------------------------------------
          Geir B Hansen
      geirh@funcom.com
Web-designer / Graphic artist
          Funcom Oslo
------------------------------------------------