[Zope] RE : Catalog mystery

Francois-regis.Chalaoux@sanofi-synthelabo.com Francois-regis.Chalaoux@sanofi-synthelabo.com
Wed, 15 Jan 2003 16:42:52 +0100


Hi Dieter,

Firstly thanks for your answer.

Secondly, I tried to modify the Catalog.py file with :

1/ the addition of this statement at the begining of the file : "from
cDocumentTemplate import safe_callable"
2/ I made the modification you gave me "cDocumentTemplate.safe_callable"
and in fact in the code this give : if(attr is not MV and
safe_callable(attr)): attr=attr()

Now, I can't start Zope and the error is below. Before sending to Collector
I would like to have sentiment on this problem :

E:\softwares\WebSite5>"E:\softwares\WebSite5\bin\python.exe" "E:
\softwares\WebSite5\z2.py" -D
------
2003-01-15T15:35:49 PANIC(300) z2 Startup exception
Traceback (innermost last):
  File E:\softwares\WebSite5\z2.py, line 497, in ?
  File <string>, line 1, in ?
  File E:\SOFTWA~1\WebSite5\lib\python\Zope\__init__.py, line 22, in ?
  File E:\SOFTWA~1\WebSite5\lib\python\OFS\Application.py, line 18, in ?
  File E:\SOFTWA~1\WebSite5\lib\python\App\Product.py, line 47, in ?
  File E:\SOFTWA~1\WebSite5\lib\python\HelpSys\__init__.py, line 15, in ?
  File E:\SOFTWA~1\WebSite5\lib\python\HelpSys\HelpSys.py, line 18, in ?
  File E:\SOFTWA~1\WebSite5\lib\python\Products\ZCatalog\__init__.py, line
16, i
n ?
  File E:\SOFTWA~1\WebSite5\lib\python\Products\ZCatalog\ZCatalog.py, line
27, i
n ?
  File E:\SOFTWA~1\WebSite5\lib\python\Products\ZCatalog\Catalog.py, line
35, in
 ?
    (Object: NoBrainer)
ImportError: No module named cDocumentTemplate