[Zope-CMF] New CMF, old Content issue
Volodymyr Cherepanyak
vcherep@yahoo.com
Fri, 22 Jun 2001 12:18:13 +0300
Hi,
Have just installed new CMF 1.1. on Zope 2.3.1.
Imported my CMF Portal created with CMF 1.0.earlier. Looks Ok but one
thing I can not solve.
I've got custom(own) product developed on old version.
Arcihtecture: BaseClass ("Aclass") manages/contains several instances of
other classes ("Bclass").
"Aclass" -- base is ZObject, ZObjectManager,
_ZClass_for_PortalContent, _ZClass_for_DefaultDublinCoreImpl
"Bclass" -- bassed on ZObject, _ZClass_for_PortalContent,
_ZClass_for_DefaultDublinCoreImpl (_ZClass_for_PortalContent in order
to be automatically catalogied).
Problem: When trying to call "Bclass" in <dtml-with> or <dtml-let>
clause got an error:
Error type: Not Found
Error value: Cannot find default view for
"/portal/Members/VC/Aclass/Bclass"
Traceback (innermost last):
File D:\Project\MyZope\MySite\lib\python\ZPublisher\Publish.py, line
223, in publish_module
File D:\Project\MyZope\MySite\lib\python\ZPublisher\Publish.py, line
187, in publish
File D:\Project\MyZope\MySite\lib\python\Zope\__init__.py, line 221,
in zpublisher_exception_hook
(Object: Traversable)
File D:\Project\MyZope\MySite\lib\python\ZPublisher\Publish.py, line
171, in publish
File D:\Project\MyZope\MySite\lib\python\ZPublisher\mapply.py, line
160, in mapply
(Object: manage_EditSkills)
File D:\Project\MyZope\MySite\lib\python\ZPublisher\Publish.py, line
112, in call_object
(Object: manage_EditSkills)
File D:\Project\MyZope\MySite\lib\python\OFS\DTMLMethod.py, line 189,
in __call__
(Object: manage_EditSkills)
File
D:\Project\MyZope\MySite\lib\python\DocumentTemplate\DT_String.py, line
538, in __call__
(Object: manage_EditSkills)
File C:\Program Files\WebSite\lib\python\Products\ZDebug\DTMLDebug.py,
line 307, in debug_render_blocks
File C:\Program Files\WebSite\lib\python\Products\ZDebug\DTMLDebug.py,
line 305, in debug_render_blocks
File D:\Project\MyZope\MySite\lib\python\DocumentTemplate\DT_Let.py,
line 147, in render
(Object: listIds="listObject('Bclass')"
leng="_.len(listIds)"
ps="propertysheets")
File C:\Program Files\WebSite\lib\python\Products\ZDebug\DTMLDebug.py,
line 307, in debug_render_blocks
File C:\Program Files\WebSite\lib\python\Products\ZDebug\DTMLDebug.py,
line 305, in debug_render_blocks
File D:\Project\MyZope\MySite\lib\python\DocumentTemplate\DT_In.py,
line 713, in renderwob
(Object: listObject('Skill'))
File C:\Program Files\WebSite\lib\python\Products\ZDebug\DTMLDebug.py,
line 307, in debug_render_blocks
File C:\Program Files\WebSite\lib\python\Products\ZDebug\DTMLDebug.py,
line 239, in debugException
(Object: _['sequence-item'])
File C:\Program Files\WebSite\lib\python\Products\ZDebug\DTMLDebug.py,
line 305, in debug_render_blocks
File D:\Project\MyZope\MySite\lib\python\DocumentTemplate\DT_With.py,
line 133, in render
(Object: _['sequence-item'])
File D:\Project\MyZope\MySite\lib\python\DocumentTemplate\DT_Util.py,
line 334, in eval
(Object: _['sequence-item'])
(Info: _)
File <string>, line 0, in ?
File D:\Project\MyZope\MySite\lib\python\DocumentTemplate\DT_Util.py,
line 161, in careful_getitem
File C:\Program
Files\WebSite\lib\python\Products\CMFCore\PortalContent.py, line 234, in
__call__
(Object: DynamicType)
File C:\Program
Files\WebSite\lib\python\Products\CMFCore\PortalContent.py, line 227, in
_getDefaultView
(Object: DynamicType)
Not Found: (see above)
"Aclass" is among portal_types. "Bclass" is not one of portal_types
(surelly had no view at all). In previous release it works.
Regards.
Volodymyr Cherepanyak.