[Zope] ZDiscussions in Zope 2.4.0
Dieter Maurer
dieter@handshake.de
Thu, 23 Aug 2001 21:50:17 +0200 (CEST)
Stephan Goeldi writes:
> What is the right way to add a ZDiscussion in Zope 2.4.0?
>
> When I add it, it tells me:
>
> Error Type: TypeError
> Error Value: Catalog addIndex now requires the index type to be resolved
> prior to adding; create the proper index in the caller.
>
> What is "the caller" and what is "the proper index"?
Apparently the "addIndex" API has changed with the new
"Pluggable Indexes".
It now expects a complete index object and not a name and a type as
parameters.
The "caller" is the "ZDiscussion" instance that tries to add
indexes to the catalog. Its code needs to be changed in
order to use the new API.
Dieter