[Zope-CMF] error moving a CMF product from a mac to a linux box

Tres Seaver tseaver@zope.com
31 Aug 2002 11:01:46 -0400


On Sat, 2002-08-31 at 10:05, Aaron Payne wrote:

> I'm having a bit of trouble moving a cmf file system
> product from a Mac OSX Zope (Zope 2.5.1, CMF 1.3) to a
> Linux Zope (Zope 2.5.1, CMF 1.3).  When I try to add
> an instance of the product I receive an error stating,
> "object of type 'None' is not callable."  Of course,
> it worked fine on the Mac and is broken on the Linux
> box.
> 
> Any direction toward a solution would be very
> appreciated.
> thanks,
> Aaron
> 
> Error Type: TypeError
> Error Value: object of type 'None' is not callable
> Traceback (innermost last):

<snip>

>   File
> /usr/local/zope/Zope-2.5.1/lib/python/Products/CMFCore/WorkflowCore.py,
> line 79, in __call__
>     (Object: setFormat)
> TypeError: (see above)

Hmm, the "usual suspects" in this kind of transition (Mac->Linux) are
text files whose line-ending conventions don't match;  this underlying
cause can lead to symptoms such as you describe, especially if they
trigger "partial imports" where global defaults ('None' is a common
value for this) aren't overlain by subsequent, failed imports.  I would
first check the Python files in your custom product (both "normal"
modules and skin methods) for CR-but-no-LF issues.

If that doesn't pan out, then you are probably looking at setting
breakpoints (via 'import pdb; pdb.set_trace()') in your modules (or in
the core CMF), trying to find out how 'setFormat' got to be 'None.

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com