[Zope-CMF] CMF product development problems

Tres Seaver tseaver@digicool.com
Sat, 07 Apr 2001 23:47:16 -0400


Tim Hicks wrote:
> 
> Gogo,
> 
> I'm getting this as well, did you find out what was happening?
> 
> cheers
> 
> tim
> 
> ---- Original Message ----
> 
> Hello, everybody!
> 
> I'm developing some CMF products and therefore I went through the CMF
> PortalPoll Tutorial.
> 
> I ran into problems:
> 
> When the product is set up like discribed and I want to instantiate it I get
> an error that reads like this:
> 
> --------schnipp--------
> 
> Zope Error
> Zope has encountered an error while publishing this resource.
> 
> Error Type: AttributeError
> Error Value: __call__
> 
> Traceback (innermost last):
>   File
> /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/ZPublisher/Publish.py,
> line 222, in publish_module
>   File
> /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/ZPublisher/Publish.py,
> line 187, in publish
>   File
> /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/Zope/__init__.py, line
> 221, in zpublisher_exception_hook
>     (Object: Traversable)
>   File
> /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/ZPublisher/Publish.py,
> line 171, in publish
>   File
> /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/ZPublisher/mapply.py,
> line 160, in mapply
>     (Object: invokeFactory)
>   File
> /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/ZPublisher/Publish.py,
> line 112, in call_object
>     (Object: invokeFactory)
>   File
> /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/Products/CMFCore/Porta
> lFolder.py, line 368, in invokeFactory
>     (Object: Traversable)
>   File
> /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/Products/CMFCore/Types
> Tool.py, line 714, in constructContent
>     (Object: Traversable)
>   File
> /usr/local/wing/Zope-2.3.0-Wing-linux2-x86/lib/python/Products/CMFCore/Types
> Tool.py, line 473, in constructInstance
>     (Object: ElementWithAttributes)
> AttributeError: (see above)
> 
> --------schnapp--------
> 
> I have no clue how the error can be fixed and need help. Maybe some file
> just needs to be at another spot in the object database, but the tutorial
> doesn't tell anything about that. I also wonder if there is some more
> up-to-date tutorial online...

This error says that the FactoryTypeInformation object was able
to find an object corresponding to the "Factory method" inside
its product, but that the object is not callable (the error at
line 473 is from the FTI trying to use Python's 'apply' builtin
on the object returned by '_getFactoryMethod').

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@digicool.com
Digital Creations     "Zope Dealers"       http://www.zope.org