[Zope] Product Problems w/ Zope.2.1.0 final

scott kaplan skaplan@wso.williams.edu
Thu, 2 Dec 1999 22:28:50 -0500 (EST)


I have been poking around trying to get squishdot to work with the
latest zope and I have got it working but I am not sure why it works, I
thought if I explain what I did, to get it working, and the error I was
geting, some of you Zope gurus could explain to me what I did, because I
can't figure it out.

When you add the squishdot product and it begins to create an instance of
a squishsite, it would give this error message:

Error Type: TypeError
Error Value: call of non-function (type module)
(i have added the traceback at the bottom of the message)

What I did was change the file TextIndex.py in the
Zope-2.1.0-linux2-x86/lib/python/SearchIndex

and commented out the line
209 : BTree = BTree.BTree

and changed lines
253: self._index=BTree()  to  self._index=BTree.BTree()
and                                                   
264: self._index=BTree()  to  self._index=BTree.BTree()

and now it works fine, no problems, so my question is, what did I do? It
seems like
BTree=BTree.BTree
self._index=BTree()

is the same as
#BTree=BTree.BTree
self._index=BTree.BTree()

So I am not sure what the difference is,

here is the traceback of the original message:
Traceback (innermost last):
  File
/usr/local/zope/Zope-2.1.0-linux2-x86/lib/python/ZPublisher/Publish.py,
line 214, in publish_module
  File
/usr/local/zope/Zope-2.1.0-linux2-x86/lib/python/ZPublisher/Publish.py,
line 179, in publish
  File /usr/local/zope/Zope-2.1.0-linux2-x86/lib/python/Zope/__init__.py,
line 202, in zpublisher_exception_hook
    (Object: ApplicationDefaultPermissions)
  File
/usr/local/zope/Zope-2.1.0-linux2-x86/lib/python/ZPublisher/Publish.py,
line 165, in publish
  File
/usr/local/zope/Zope-2.1.0-linux2-x86/lib/python/ZPublisher/mapply.py,
line 160, in mapply
    (Object: manage_addSquishdot)
  File
/usr/local/zope/Zope-2.1.0-linux2-x86/lib/python/ZPublisher/Publish.py,
line 102, in call_object
    (Object: manage_addSquishdot)
  File
/usr/local/zope/Zope-2.1.0-linux2-x86/lib/python/Products/Squishdot/Squishdot.py,
line 1560, in manage_addSquishdot
    (Object: ApplicationDefaultPermissions)
  File
/usr/local/zope/Zope-2.1.0-linux2-x86/lib/python/Products/Squishdot/Squishdot.py,
line 381, in __init__
    (Object: ElementWithAttributes)
  File
/usr/local/zope/Zope-2.1.0-linux2-x86/lib/python/SearchIndex/TextIndex.py,
line 253, in __init__
TypeError: (see above)

thanks
Scott