[Zope-CMF] Upgrading CMF - Problem w/ ZClasses?

Antwan Reijnen twanus@xs4all.nl
Wed, 09 Jan 2002 09:44:04 +0100


Hi,

do you by any chance use dtml-methods as constructor for your ZClasses? I did, and had the same problems (see the talkbalk on CMF ZClass FAQ example). I replaced the dtml-methods by pythonscripts, and that solved the problem. 

Greetings, Antwan.

At 07:15 9-1-02 +0000, you wrote:
>I went from 1.1 to 1.2b1 by following the instructions (?):
>
>moving out the CMFCore, CMFDefault, CMFTopic, and CMFCalendar (I'm not using Topics/Calendars) and then unpacking the new 1.2b1 tarballs.  when I restart everything *seems* fine on the outside.  but I can not create custom content!
>
>I can create the stock CMFCore objects.  But I have (foolishly?) problems creating ZClass based CMF content.  I get the following error:
>
>Traceback (innermost last):
>   File D:\ZOPE\lib\python\ZPublisher\Publish.py, line 223, in publish_module
>   File D:\ZOPE\lib\python\ZPublisher\Publish.py, line 187, in publish
>   File D:\ZOPE\lib\python\Zope\__init__.py, line 226, in zpublisher_exception_hook
>     (Object: jheyne)
>   File D:\ZOPE\lib\python\ZPublisher\Publish.py, line 171, in publish
>   File D:\ZOPE\lib\python\ZPublisher\mapply.py, line 160, in mapply
>     (Object: invokeFactory)
>   File D:\ZOPE\lib\python\ZPublisher\Publish.py, line 112, in call_object
>     (Object: invokeFactory)
>   File D:\ZOPE\lib\python\Products\CMFCore\PortalFolder.py, line 335, in invokeFactory
>     (Object: jheyne)
>   File D:\ZOPE\lib\python\Products\CMFCore\TypesTool.py, line 699, in constructContent
>     (Object: portal_types)
>   File D:\ZOPE\lib\python\Products\CMFCore\TypesTool.py, line 430, in constructInstance
>     (Object: Product Datasheet)
>   File D:\ZOPE\lib\python\OFS\ObjectManager.py, line 290, in _getOb
>     (Object: jheyne)
>AttributeError: (see above)
>
>any ideas?
>~runyaga
>
>
>_______________________________________________
>Zope-CMF maillist  -  Zope-CMF@zope.org
>http://lists.zope.org/mailman/listinfo/zope-cmf
>
>See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests